menu =  {"burger": 3.99,
         "fries": 1.99,
         "drink": 0.99}
total = 0

#shows the user the menu and prompts them to select an item
print("Menu")
for k,v in menu.items():
    print(k + "  $" + str(v)) #why does v have "str" in front of it?

#ideally the code should prompt the user multiple times
item = input("Please select an item from the menu")

#code should add the price of the menu items selected by the user 
print(total)
Menu
burger  $3.99
fries  $1.99
drink  $0.99
0
menu =  {"burger": 3.99,
         "fries": 1.99,
         "drink": 0.99}
total = 0

# Display the menu to the user
print("Menu")
for k, v in menu.items():
    print(k + "  $" + str(v))

# Prompt the user to select items until they're done
while True:
    item = input("Please select an item from the menu (or 'done' to finish): ")
    
    if item.lower() == 'done':
        break
    
    if item in menu:
        price = menu[item]
        print(f"{item} - ${price:.2f}")
        total += price
    else:
        print("Invalid item. Please choose from the menu.")

# Display the total cost
print("Total: $", total)

Menu
burger  $3.99
fries  $1.99
drink  $0.99
fries - $1.99
burger - $3.99
fries - $1.99
fries - $1.99
drink - $0.99
drink - $0.99
Invalid item. Please choose from the menu.
Invalid item. Please choose from the menu.
Invalid item. Please choose from the menu.
Invalid item. Please choose from the menu.
Invalid item. Please choose from the menu.
Invalid item. Please choose from the menu.
Total: $ 11.940000000000001