Advertisement
Guest User

Menu Program

a guest
Feb 21st, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. print 'Welcome! Please let me know what you would like for dessert.\nHere are our choices on the menu:'
  2. choices = ['Sundae', 'Cake', 'Pudding', 'Ice Cream', 'Brownie']
  3. for x in range(len(choices)):
  4. print '\t', x, choices[x]
  5. your_choice = raw_input('What would you like to order? Please choose with the integer in front of your choice of dessert.')
  6. if your_choice == '0':
  7. print 'You chose Sundae as your dessert. Enjoy!'
  8. elif your_choice == '1':
  9. print 'You chose Cake as your dessert. Enjoy!'
  10. elif your_choice == '2':
  11. print 'You chose Pudding as your dessert. Enjoy!'
  12. elif your_choice == '3':
  13. print 'You chose Ice Cream as your dessert. Enjoy!'
  14. elif your_choice == '4':
  15. 'You chose Brownie as your dessert. Enjoy!'
  16. else:
  17. print 'You did not choose something on our menu, please run the program again and choose an integer from our menu.'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement