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


print("Menu")
for k,v in menu.items():
    print(k + "  $" + str(v)) 

total = 0
N = int(input("How many items do you wish to purchase?"))
count = 0
while count < N:
    item = input("Please select an item from the menu")
    try: 
        total += menu[item]
        count+=1
    except:
        print("Invalid input")


print(str(total))
Menu
burger  $3.99
fries  $1.99
drink  $0.99
4.98