Skip to content

muniir140/pizza-program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ• Python Pizza Deliveries

A simple beginner-friendly Python project where users can order pizza by choosing size and toppings. The program calculates the total bill based on the user's choices.


πŸ“– How It Works

  1. The user selects a pizza size:

    • S (Small) β†’ $15
    • M (Medium) β†’ $20
    • L (Large) β†’ $25
  2. The user decides whether to add pepperoni:

    • +$2 for Small pizzas
    • +$3 for Medium or Large pizzas
  3. The user chooses whether to add extra cheese:

    • +$1 for any size
  4. The final bill is displayed.


πŸ–₯️ Example Run

πŸ• Welcome to Python Pizza Deliveries!
What size pizza do you want? S, M or L: M
Do you want pepperoni on your pizza? Y or N: Y
Do you want extra cheese? Y or N: N
βœ… Your final bill is $23

πŸš€ Features

  • Input validation (prevents wrong inputs like typing Z for size).
  • Calculates bill dynamically.
  • Beginner-friendly project for learning Python basics (if/else, input, variables).

▢️ How to Run

  1. Make sure you have Python 3 installed.
  2. Save the code in a file, e.g., pizza.py.
  3. Open your terminal and run:
python pizza.py

🎯 Future Improvements

  • Add multiple pizza orders in one run.
  • Add more toppings (mushrooms, olives, etc.).
  • Allow user to order drinks and sides.

✨ Have fun customizing your pizza order in Python! πŸ•

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages