Python Mini Projects For Beginners - Restaurant Menu Program 2022

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 4

  • @UnbackedMuffn
    @UnbackedMuffn Год назад +2

    How would you make a pizza menu where you can order multiple toppings and different pizza size? Each topping having a dif set price as well as size. Then adding drink order and adding total.

    • @DrPythonCode
      @DrPythonCode  5 месяцев назад +2

      You can use a dictionary to store prices and basic input prompts to take orders.
      sizes = {'small': 8, 'medium': 10, 'large': 12}
      toppings = {'pepperoni': 2, 'mushrooms': 1, 'extra cheese': 1.5}
      drinks = {'soda': 1.5, 'water': 1}
      I might make this as an example some time.

  • @francismannion7075
    @francismannion7075 5 месяцев назад +1

    Thank you that was very informative and interesting.