I am currently working on an ordering meal system using python and the task is to let user select the meal options that are available on the menu. It should allow the user to enter a meal selection number (which matches the number shown in the menu) and the appropriate validation should be performed on user response
After a valid choice the program should print “now cooking [name]”
Otherwise it should print “invalid choice”.
def customer_selection():
menu_items = ["Budda Bowl(vg)", "Eye Fillet Steak",
"Spaghetti Bolognese", "Pad Thai(seafood)"]
user_input = int(input())
if(user_input in menu_items):
print('Now cooking',menu_item[user_input-1])
else:
print('invalid choice.')
print(customer_selection())