Skip to content

set3 #6

Description

@rohit20032003

taqueria
correct
def main():
menu = {
"Baja Taco": 4.25,
"Burrito": 7.50,
"Bowl": 8.50,
"Nachos": 11.00,
"Quesadilla": 8.50,
"Super Burrito": 8.50,
"Super Quesadilla": 9.50,
"Taco": 3.00,
"Tortilla Salad": 8.00
}

total_cost = 0.0

while True:
    try:
        item = input("Item: ").title()
        if item in menu:
            total_cost += menu[item]
            print(f"Total: ${total_cost:.2f}")
    except EOFError:
        print()  # Print a new line for better formatting
        break

if name == "main":
main()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions