Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set3 #6

Open
rohit20032003 opened this issue Jun 28, 2024 · 0 comments
Open

set3 #6

rohit20032003 opened this issue Jun 28, 2024 · 0 comments

Comments

@rohit20032003
Copy link

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant