Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/muhammadalamzeb/python_projects/llms.txt

Use this file to discover all available pages before exploring further.

This script simulates a simple restaurant ordering experience in your terminal. When you launch it, the full menu is displayed. You then place items one at a time — each addition updates your running total — and finish when you’re ready to close the order.

How to run

python3 Restaurant_Management_System.py
ItemPrice (PKR)
Pizza40
Pasta50
Burger60
Salad70
Coffee80

Ordering flow

1

View the menu

The script prints the full menu with prices as soon as it starts.
2

Place an item

Type an item name at the Please place your order: prompt. If the item is in the menu, its price is added to your running total and a confirmation is printed.
3

Continue or finish

After each item, you are asked Do you want to order something else? (y/n):. Type y to add another item or n to end the session.
Item names are case-insensitive. The script calls .capitalize() on your input, so pizza, PIZZA, and Pizza are all treated the same.

Terminal session example

Welcome to Sukkur IBA Restaurant
Pizza costs 40 PKR
Pasta costs 50 PKR
Burger costs 60 PKR
Salad costs 70 PKR
Coffee costs 80 PKR
Please place your order: pizza
Your item Pizza has been added to the order
Total Amount: 40 PKR
Do you want to order something else? (y/n): y
Please place your order: coffee
Your item Coffee has been added to the order
Total Amount: 120 PKR
Do you want to order something else? (y/n): n

Error handling

If you type an item that is not in the menu, the script prints:
Sorry, we do not have this item in our menu
The order prompt then repeats immediately — your running total is unchanged and no item is added.

Build docs developers (and LLMs) love