it was nice. i made same but by using while loop menu = { 'pizza': 60, 'Pasta': 40, 'Burger': 60, 'salad': 70, 'coffee': 80, } print("Welcome to Python Restaurant") print("pizza: 60 Rs Pasta: 40 Rs Burger: 60 Rs salad: 70 Rs coffee: 80 Rs") order_total = 0 while True: item = input("Enter the item you want to order: ") if item in menu: order_total += menu[item] print(f"Your item {item} has been added to your order") else: print("Sorry, we don't have that item on the menu") another_order = input("Do you want to add another item? (yes/no): ") if another_order.lower() != 'yes': break print(f"The total amount to pay is {order_total} Rs")
menu = { 'Pizza': 120, 'Burger': 80, 'Salad': 40, 'Coffe': 25, 'Sihab': 0.2, } print("Welcome to our Resturant, Here is our menu") print('') print("Pizza: 120 Burger: 80 Salad: 40 Coffe: 25") Order1 = input("What do you want to order? : ") print("Your bill is: ", menu[Order1]) Order2 = input("Do you want to order more? : ") if(Order1 != "Coffe" and Order2 == "No"): print("Your total bill is ", menu[Order1] )
elif(Order1 == "Coffe" and Order2 == "No"): print("Sorry sir, You Cant order just a coffe") print("Thank You") else: total_bill = menu[Order1]+menu[Order2] Coupon = (input("Do you have a coupon Code, if yes then enter it? :")) if(Coupon == "Sihab"): disc_value = total_bill * menu[Coupon] print("Your bill after 20% Discount: ", total_bill - disc_value) else: print("Your total bill is: ", menu[Order1]+menu[Order2])
print("Thank you for ordering") this is my first project....thanks a lot
we can also use for loop for dictionary elements. menu ={"Pizza":40, "Pasta":50, "Fries":20, "Kabab":60, } print("Welcome to our Restraunt. ") for item,price in menu.items(): print(f"{item}: {price} RS") order_total =0; while True: item=str(input("Select your Items:")) if item in menu: order_total += menu[item] print(f"You item is selected") else: print("Selected item is not in our menu...") another_order=input("You want to add another item? (Yes/No)") if another_order.lower() != 'yes': break print(f"You have to pay a total amount of: {order_total} RS")
menu = { "Pizza":70, "Pasta":50, "Burger":30, "Salad":30, "Coffee":60 } print("Hello Sir") print("Welcome to our restaurant") print("This is our MENU") print("Pizza: 70/- Pasta: 50/- Burger: 30/- Salad: 30/- Coffee: 60/-") order_total = 0 item_1 = input("Enter an item to order: ").capitalize() if item_1 in menu: order_total += menu[item_1] print(f"{item_1} has been added") else: print("Sorry! That's not availale") another_item = input("Do you want Anything Else? (Yes/No):").lower() if another_item in "yes" or "no": if another_item == 'yes': item_2 = input("What would you like to order next?: ").capitalize() if item_2 in menu: order_total += menu[item_2] print(f"{item_2} has been added") print(f"Your total bill is Rs {order_total}") else: print("Sorry! that item is not unavailable") elif another_item == 'no': print(f"Great! You ordered a {item_1}") print(f"Your total bill is Rs {order_total}") else: print("Sorry! That's not a valid response")
menu = { "pizza":120, "burger": 30, "coffee":10, "chowmein":30, "maggie":40, "dosa": 60, } a = input("Hello, sir What Help do you want? ") def order(): total_order = 0 if a == "order": b = input("What would you like to order? ") if b in menu: total_order += menu[b] print(f"{b} has been added to your list") else: print("We dont have that item sir")
c = input("Want Anything else? ") if c == 'yes': d = input("What do you want? ") if d in menu: total_order += menu[d] print(f"{d} has been added to your list") print(f"your Total bill is {total_order}") else: print("We dont have that sir") elif c == 'no': print(f"Your total bill is {total_order}") if total_order == 0: print("Must buy something whenever you visit next time") elif a == "list": print("___ARISE RESTU MENU___") print("1. pizza - 120₹ 2. burger - 30₹ 3. coffee - 10₹ 3. chowmein - 30₹ 4. maggie - 40₹ 5. dosa - 60₹") order()
I have made it like this :- menu = { "Pizza": 50, "Salaad": 60, "Burger" : 90, "Cofee" : 10, } order_bill = 0 while True: item = str(input("Enter your oder:"))
if item in menu: order_bill = order_bill + menu[item] print("you have ordered:", item,) print(" your bill is:", order_bill, "rupees" ) else: print("Sorry we dont have that in menu") confirmation = str(input("Would you like to order something else ? (Yes/No) ")) if(confirmation == "Yes"): continue elif(confirmation == "No"): break else : print("Error you chose an option not in system. Therefore Completing your order") break print("You have to Pay : ", order_bill, "Rupees")
# Define the menu of restaurant menu = { 'pizza': 60, 'Pasta': 40, 'Burger': 60, 'salad': 70, 'coffee': 80, } # Greet the user print("Welcome to Python Restaurant") print("pizza: 60 Rs Pasta: 40 Rs Burger: 60 Rs salad: 70 Rs coffee: 80 Rs") order_total = 0 # Start the ordering process while True: item = input("Enter the name of the item you want to order: ").lower() # Convert to lowercase for consistency if item in menu: order_total += menu[item] # Add the price of the ordered item to the total print(f"Your item {item} has been added to your order.") else: print(f"Sorry, {item} is not available yet!") # Ask if the user wants to add another item another_order = input("Do you want to add another item? (yes/no): ").lower() if another_order != 'yes': break # Exit the loop if the user doesn't want to order more items # Print the total amount to pay print(f"The total amount to pay is {order_total} Rs")
In My 12 th i had already done these project already now i am working on web development with python And i am sure i will learn more and I will do something for my country 🇮🇳 In technology and department of computer science ❤
@@majedkhan2094 which programming language you want to learn python? If python Start watching basics 10 to 15 hours complete course available on UA-cam then start practicing question because doing question can teach you a lot after start coding..
# Define the menu of the restaurant menu = { "pizza": 80, "burger": 50, "fries": 60, "coke": 30, "water": 40 } # Greet the customer print("Welcome to the restaurant! ") print("Would you like to have:") for item, price in menu.items(): print(f"{item}: Rs{price}") # Initialize total bill total_food = 0 # Ask for the first item while True: item = input(" What would you like to order (or type 'done' to finish)? ").lower() if item == "done": break if item in menu: total_food += menu[item] print(f"You have selected {item}.") else: print(f"Sorry, {item} is not available in the restaurant.") # Display the total bill print(f" Your total bill is Rs{total_food}. Enjoy your meal!") this is alternative for this code 😃😃
I have a doubt over here you made the page for ordering please let us know how the resto owner or resto people will get notified those orders and keep track of it?
Bhai it was fantastic 😻😻 This way if you teach then any degree holder (example:me only)can understand easily and where to apply when to apply everything is easily doable 😃❤ And pls continue 100 days of coding till entire course using like these kind projects as example Then it's useful for everyone 😢😢😢 Please brother 🙏❤❤❤
Object-oriented programming python,java,c++ languages k wo topics bataye jinke concepts ek professional software development engineer ko yaad and pata hone must ho
Thanks Bro!
I'm new here, and love to watch Your practical video with detailed and step by step explanation. Thanks again💖
Bade bhaiya bhut acha explain krte ho aap such mai bhut hi jaadaaaaaaaaaaaaaaaaaaaaaaaaa accha
Thanks bhai aise hi padhte rho
@@codingwithsagarcw Your explanation is better than code with hurry
Please makes like this types of videos ❤ |
English please
Bhai I really feel sad after looking views on this video, you are brilliant but why people don't come here
Bhai vahi tou same
Baki Sab nude reel dekhne me busy he 😅
Right mai bhi tahel tahel te pohoch gaya yahan 😂
Great things are for great people not for all😊🎉
it was nice.
i made same but by using while loop
menu = {
'pizza': 60,
'Pasta': 40,
'Burger': 60,
'salad': 70,
'coffee': 80,
}
print("Welcome to Python Restaurant")
print("pizza: 60 Rs
Pasta: 40 Rs
Burger: 60 Rs
salad: 70 Rs
coffee: 80 Rs")
order_total = 0
while True:
item = input("Enter the item you want to order: ")
if item in menu:
order_total += menu[item]
print(f"Your item {item} has been added to your order")
else:
print("Sorry, we don't have that item on the menu")
another_order = input("Do you want to add another item? (yes/no): ")
if another_order.lower() != 'yes':
break
print(f"The total amount to pay is {order_total} Rs")
I was also going to suggest the same
If "another_order" is yes then what will happen ??
@@gyanaranjansahoo6927 Then the while loop will continue running
@@marsbgmi1391 no dear ! "Break" will outside the loop .
There will be error
@@gyanaranjansahoo6927 there is a condition given in a code ... If " another_order" is not equal to 'yes' .. then only it will break from loop
menu = {
'Pizza': 120,
'Burger': 80,
'Salad': 40,
'Coffe': 25,
'Sihab': 0.2,
}
print("Welcome to our Resturant, Here is our menu")
print('')
print("Pizza: 120
Burger: 80
Salad: 40
Coffe: 25")
Order1 = input("What do you want to order? : ")
print("Your bill is: ", menu[Order1])
Order2 = input("Do you want to order more? : ")
if(Order1 != "Coffe" and Order2 == "No"):
print("Your total bill is ", menu[Order1] )
elif(Order1 == "Coffe" and Order2 == "No"):
print("Sorry sir, You Cant order just a coffe")
print("Thank You")
else:
total_bill = menu[Order1]+menu[Order2]
Coupon = (input("Do you have a coupon Code, if yes then enter it? :"))
if(Coupon == "Sihab"):
disc_value = total_bill * menu[Coupon]
print("Your bill after 20% Discount: ", total_bill - disc_value)
else:
print("Your total bill is: ", menu[Order1]+menu[Order2])
print("Thank you for ordering")
this is my first project....thanks a lot
we can also use for loop for dictionary elements.
menu ={"Pizza":40,
"Pasta":50,
"Fries":20,
"Kabab":60,
}
print("Welcome to our Restraunt.
")
for item,price in menu.items():
print(f"{item}: {price} RS")
order_total =0;
while True:
item=str(input("Select your Items:"))
if item in menu:
order_total += menu[item]
print(f"You item is selected")
else:
print("Selected item is not in our menu...")
another_order=input("You want to add another item? (Yes/No)")
if another_order.lower() != 'yes':
break
print(f"You have to pay a total amount of: {order_total} RS")
TBH bhai
things I was searching since long you made that
love your way of explaining things 🙏
Thanks bro ap NY boht achy sy samjhye..
Bhai please series ko continue rakhna ❤
❤
menu = {
"Pizza":70,
"Pasta":50,
"Burger":30,
"Salad":30,
"Coffee":60
}
print("Hello Sir")
print("Welcome to our restaurant")
print("This is our MENU")
print("Pizza: 70/-
Pasta: 50/-
Burger: 30/-
Salad: 30/-
Coffee: 60/-")
order_total = 0
item_1 = input("Enter an item to order: ").capitalize()
if item_1 in menu:
order_total += menu[item_1]
print(f"{item_1} has been added")
else:
print("Sorry! That's not availale")
another_item = input("Do you want Anything Else? (Yes/No):").lower()
if another_item in "yes" or "no":
if another_item == 'yes':
item_2 = input("What would you like to order next?: ").capitalize()
if item_2 in menu:
order_total += menu[item_2]
print(f"{item_2} has been added")
print(f"Your total bill is Rs {order_total}")
else:
print("Sorry! that item is not unavailable")
elif another_item == 'no':
print(f"Great! You ordered a {item_1}")
print(f"Your total bill is Rs {order_total}")
else:
print("Sorry! That's not a valid response")
Bro could u tell me in which webiste or software , I can make this project and save it
@@tanulupadhyay1802 You can fo it in any IDE means software like VS code and pycharm
menu = {
"pizza":120,
"burger": 30,
"coffee":10,
"chowmein":30,
"maggie":40,
"dosa": 60,
}
a = input("Hello, sir
What Help do you want?
")
def order():
total_order = 0
if a == "order":
b = input("What would you like to order?
")
if b in menu:
total_order += menu[b]
print(f"{b} has been added to your list")
else:
print("We dont have that item sir")
c = input("Want Anything else?
")
if c == 'yes':
d = input("What do you want?
")
if d in menu:
total_order += menu[d]
print(f"{d} has been added to your list")
print(f"your Total bill is {total_order}")
else:
print("We dont have that sir")
elif c == 'no':
print(f"Your total bill is {total_order}")
if total_order == 0:
print("Must buy something whenever you visit next time")
elif a == "list":
print("___ARISE RESTU MENU___")
print("1. pizza - 120₹
2. burger - 30₹
3. coffee - 10₹
3. chowmein - 30₹
4. maggie - 40₹
5. dosa - 60₹")
order()
I have made it like this :-
menu = {
"Pizza": 50,
"Salaad": 60,
"Burger" : 90,
"Cofee" : 10,
}
order_bill = 0
while True:
item = str(input("Enter your oder:"))
if item in menu:
order_bill = order_bill + menu[item]
print("you have ordered:", item,)
print(" your bill is:", order_bill, "rupees" )
else:
print("Sorry we dont have that in menu")
confirmation = str(input("Would you like to order something else ? (Yes/No) "))
if(confirmation == "Yes"):
continue
elif(confirmation == "No"):
break
else :
print("Error you chose an option not in system. Therefore Completing your order")
break
print("You have to Pay : ", order_bill, "Rupees")
No need for this background music. You can do more low this bgm.
It's awesome bro. Pls make some more simple python mini project and make a playlist of this kind of thinks...
Amazing....
my first project and you explained it very well.
Thanks a lot Sagar
Thanku brooo hame kuch bhi nahi milra tha code mile tho run nhi hora tha soo tq ise video helpful❤
Thanks for the phonebook project...
Very simple n sorted thank u 🙏
excellent ! Nice explanation of line by line code.. make more videos of project
I have started exploring your channel because of more and more projects you have uploaded ...it's good to keep it more practical then theoretical...❤
Bhai you are jem ... Nice video 😊
This is really a very helpful video for the freshers, who want to know how to make a unique project by themselves.🙏🙏🙏🙏🙏
# Define the menu of restaurant
menu = {
'pizza': 60,
'Pasta': 40,
'Burger': 60,
'salad': 70,
'coffee': 80,
}
# Greet the user
print("Welcome to Python Restaurant")
print("pizza: 60 Rs
Pasta: 40 Rs
Burger: 60 Rs
salad: 70 Rs
coffee: 80 Rs")
order_total = 0
# Start the ordering process
while True:
item = input("Enter the name of the item you want to order: ").lower() # Convert to lowercase for consistency
if item in menu:
order_total += menu[item] # Add the price of the ordered item to the total
print(f"Your item {item} has been added to your order.")
else:
print(f"Sorry, {item} is not available yet!")
# Ask if the user wants to add another item
another_order = input("Do you want to add another item? (yes/no): ").lower()
if another_order != 'yes':
break # Exit the loop if the user doesn't want to order more items
# Print the total amount to pay
print(f"The total amount to pay is {order_total} Rs")
Good brother keep doing this
Please Keep continue
You Understand Very well!!
Bhai thankyou kuch seekhne ko mila❤
In My 12 th i had already done these project already now i am working on web development with python And i am sure i will learn more and I will do something for my country 🇮🇳 In technology and department of computer science ❤
Brother can u tell me which videos u watched in the beginning of ur programming
@@majedkhan2094 which programming language you want to learn python?
If python
Start watching basics 10 to 15 hours complete course available on UA-cam then start practicing question because doing question can teach you a lot after start coding..
@@majedkhan2094 bhai pta chle to mujhe bhi btaio
Really nice project made the phone book completely myself it was fun learnt alot, very nice channel
Your videos are awesome 🔥🔥🔥🔥🔥🔥
Bahut easily understand your video 😊
my first project of python . I am feeling very joyful, Sir Thank you so muchh
Thanks brother your video is very informative.
Thanks bro i have made it , your earned a subscriber!!! You are good at making peoples understand step by step, Keep up the good work
Very nice 👍🏻 Bhai
# Define the menu of the restaurant
menu = {
"pizza": 80,
"burger": 50,
"fries": 60,
"coke": 30,
"water": 40
}
# Greet the customer
print("Welcome to the restaurant!
")
print("Would you like to have:")
for item, price in menu.items():
print(f"{item}: Rs{price}")
# Initialize total bill
total_food = 0
# Ask for the first item
while True:
item = input("
What would you like to order (or type 'done' to finish)? ").lower()
if item == "done":
break
if item in menu:
total_food += menu[item]
print(f"You have selected {item}.")
else:
print(f"Sorry, {item} is not available in the restaurant.")
# Display the total bill
print(f"
Your total bill is Rs{total_food}. Enjoy your meal!")
this is alternative for this code 😃😃
I can do this in c
Bro code dena toh c ka.@@FCS_sanin
Excellent💯
It's a so interesting sir 😊❤
Bro 🤝♥️Keep shine ♥️💎
Thanks for you mini project is very helpful for my begginer python programming skill👏👏
If u done that project can u share it with me?
Awesome explanation...next part please...
Bro don't run music in the background it creates a lot of disturbance but your explanation is awesome Fully understandable
Thank you , This video is very helpful for beginners for those who have completed python basic tutorials....
code with harry wala
This will certainly boost the confidence of beginners.
Nice project simple and clear 😊
great sir thank u soo much🤗
Most welcome
Thanks man,
this was very easy and straight forward...
Why Only 343 Views He Deserve More..
Nice explanation of line by line code ! *I request you to make more videos like this plz*
Sir ji ❤❤❤❤❤❤❤❤ you are very smart 🤓🤓🤓
nicely explained...thankyou &can you plz keep low background music
Good video for beginners ❤
Helpful really awesome ❤😊
Very good explanation
bro make some more projects like this. This is very helpful for me
Bro Don't Loose Hope Your Content Is very impressive❤
Nice Video Bro 👌
❤❤❤ well done
Thanks for your guidance i make the same using tkinter 👍😃💞
Thank you so much sagar 🙏🙏
Very good..
I have a doubt over here you made the page for ordering please let us know how the resto owner or resto people will get notified those orders and keep track of it?
good project according to a beginner
Really helpful ❤❤❤
Bhai it was fantastic 😻😻
This way if you teach then any degree holder (example:me only)can understand easily and where to apply when to apply everything is easily doable 😃❤
And pls continue 100 days of coding till entire course using like these kind projects as example
Then it's useful for everyone 😢😢😢
Please brother 🙏❤❤❤
Thank you bhya bht Easley apne bta diya Thanku so much bhiya
Both hard sir 💪💪
it is very nice video
Please sir tell me
Why In out put when I order cofee
Then show the total amount of items to pay is {order_total}
Good video. Really helpful and useful for beginners in python
Bhai incredible bhai ❤❤❤❤❤
Very good video , lovely nice to watch
Very nice project bhaiya
Thank you so much sir ❤🙏🙏
Background music 😢 please skip background music
Sir , please tell me...Which software ur used fr this python? And ..for practice code Which software is best
Bhai tu hi asli programeer
Great job
Tqsm Bhai ,this video is amazing😍
Brilliant 👍👍 bro
@codingwithsagarcw what if i want to print menu by printing dictionary items on separate lines rather than using single print()
Object-oriented programming python,java,c++ languages k wo topics bataye jinke concepts ek professional software development engineer ko yaad and pata hone must ho
SHANDAAAAR❤
This video is underated
thank you sir ❤
easy pizzy thanks for practise
Thank you so much 💓💓💓💓
Very nice explanation bhai
Thanku Bhai ❤
Thank you :) ☺☺
This is really an excellent channel on Python like "techie talkee"
Great video
Nice attempt lot of optimization can be donr
Bhai loop lagaya to nahi chalta kya? Because customer srif dohi order kar para es code mai when customer want multiple order tab kya use kare ?
If we type no and yes
Will it take small letters or show errors
I want a project on blood bank.
rs mount ke bad me lagaya jata ha bhai like (20Rs) and doller mount ke pahale like ($5) just for knowledge
Sirf do hi bar order place ho skta hai aise to.
Ek baar me order place karna ha to like. Pasta , pizza and coffe.
Wo bhi possible nhi.
Bhai condition another order wali condition execute nhi ho Rahi please reply
Thank you for the give us great content but please don't use background sound if you are using it so low the background sound effects
Please make video on inventory management project
2nd part of this project link plz???