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")
@marsbgmi13917 ай бұрын
I was also going to suggest the same
@gyanaranjansahoo69276 ай бұрын
If "another_order" is yes then what will happen ??
@marsbgmi13916 ай бұрын
@@gyanaranjansahoo6927 Then the while loop will continue running
@gyanaranjansahoo69276 ай бұрын
@@marsbgmi1391 no dear ! "Break" will outside the loop . There will be error
@marsbgmi13916 ай бұрын
@@gyanaranjansahoo6927 there is a condition given in a code ... If " another_order" is not equal to 'yes' .. then only it will break from loop
@alvinrock71909 ай бұрын
Thanks Bro! I'm new here, and love to watch Your practical video with detailed and step by step explanation. Thanks again💖
@shihabsm1576 ай бұрын
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
@MeharZubair-ml7zl19 күн бұрын
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")
@The_Developer_219 ай бұрын
Bhai I really feel sad after looking views on this video, you are brilliant but why people don't come here
@onlylakshyaff52969 ай бұрын
Bhai vahi tou same
@GouravDas-m5c9 ай бұрын
Baki Sab nude reel dekhne me busy he 😅
@Shares4you-v3z7 ай бұрын
Right mai bhi tahel tahel te pohoch gaya yahan 😂
@NazimaNazimabanu-e8sАй бұрын
Great things are for great people not for all😊🎉
@MRJAWADBINANCIAN10 сағат бұрын
😂😂😂@@GouravDas-m5c
@Arise-z4f2 ай бұрын
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()
@divyanshugoyal6639 ай бұрын
Bade bhaiya bhut acha explain krte ho aap such mai bhut hi jaadaaaaaaaaaaaaaaaaaaaaaaaaa accha
@codingwithsagarcw9 ай бұрын
Thanks bhai aise hi padhte rho
@Ayushontop097 ай бұрын
@@codingwithsagarcw Your explanation is better than code with hurry Please makes like this types of videos ❤ |
@ks976262 ай бұрын
English please
@asmitaJaiswar-c9v2 күн бұрын
iss video me deatil me smjhane k liye bohot bohot shukriya😃😊🙏 mujhe samjh me b aay or acha b laga
@devesh69169 ай бұрын
TBH bhai things I was searching since long you made that love your way of explaining things 🙏
@atharvasharma8313Ай бұрын
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")
@FlashFacts.073 ай бұрын
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")
@tanulupadhyay18022 ай бұрын
Bro could u tell me in which webiste or software , I can make this project and save it
@FlashFacts.072 ай бұрын
@@tanulupadhyay1802 You can fo it in any IDE means software like VS code and pycharm
@gauravkadav76207 күн бұрын
@@tanulupadhyay1802 vs code
@VK18Reacts4 ай бұрын
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 ❤
@majedkhan20944 ай бұрын
Brother can u tell me which videos u watched in the beginning of ur programming
@VK18Reacts4 ай бұрын
@@majedkhan2094 which programming language you want to learn python? If python Start watching basics 10 to 15 hours complete course available on KZbin then start practicing question because doing question can teach you a lot after start coding..
@avi.zworld4 ай бұрын
@@majedkhan2094 bhai pta chle to mujhe bhi btaio
@AdityaPrasad1114 ай бұрын
Really nice project made the phone book completely myself it was fun learnt alot, very nice channel
@SHADRIFAT4 ай бұрын
It's awesome bro. Pls make some more simple python mini project and make a playlist of this kind of thinks...
@KumarKPandey4 күн бұрын
Nice project, Sagar Here is another version of this project # Prepare menu menu = { "Pizza":40, "Pasta":50, "Burger":60, "Salad":70, "Coffee":80 } # Greet customer print("Welcome to PyRestaurent!") for key, value in menu.items(): print(f"{key}: Rs.{value}.00") # Take order def takeOrder(): global order_total order_total = 0 another_order = 'Y' ordered_items = [] while(another_order == 'Y'): item = input("Enter the name of item you want to order: ") if item in menu: order_total+=menu[item] ordered_items.append(item) print(f"Your item {item} has been added to your order!") else: print(f"Ordered item {item} is not available yet!") print(f"Total order amount is Rs.{order_total}") another_order = input("Any other item for order Y/N: ") if order_total > 0: print(f"Thanks for order, Your ordered items are {str(ordered_items).replace('[','').replace(']','').replace('\'','')} and total amount is Rs.{order_total}") takeOrder() Happy coding!
@nishaanjum49014 ай бұрын
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...❤
@abhishekchauhan2637 ай бұрын
No need for this background music. You can do more low this bgm.
@anujpareek00049 ай бұрын
Bhai please series ko continue rakhna ❤
@gymninjafx9 ай бұрын
❤
@btsinspired...4572Ай бұрын
Thanku brooo hame kuch bhi nahi milra tha code mile tho run nhi hora tha soo tq ise video helpful❤
@GAUTAMKUMAR-dl3id3 ай бұрын
This is really a very helpful video for the freshers, who want to know how to make a unique project by themselves.🙏🙏🙏🙏🙏
@Its__AnkitSahu9 ай бұрын
Thanks for the phonebook project...
@fouzanqazi68853 ай бұрын
excellent ! Nice explanation of line by line code.. make more videos of project
@atharvapapade42416 ай бұрын
Nice explanation of line by line code ! *I request you to make more videos like this plz*
@fenalchudasama_185 ай бұрын
Please Keep continue You Understand Very well!!
@awaismubashar68264 ай бұрын
my first project of python . I am feeling very joyful, Sir Thank you so muchh
@Rockstar2010-lc6bh7 ай бұрын
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 🙏❤❤❤
@Animal_funny_short5826 ай бұрын
Thanks for you mini project is very helpful for my begginer python programming skill👏👏
@ihsanwahab70783 ай бұрын
If u done that project can u share it with me?
@MegaRocky99Ай бұрын
Thanks bro ap NY boht achy sy samjhye..
@shilpikanojia-f1o5 ай бұрын
Amazing.... my first project and you explained it very well. Thanks a lot Sagar
@LikhonMia5762 ай бұрын
# 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")
@asmitaJaiswar-c9v2 күн бұрын
hello mai ak beginnre hu from python mujhe aapka project acha laga sach me kya aap program me jo brakets ( ),{ },[ ],hote h uspe ak short video bna skte hain kya pleass....🙏k kon sa braket kah per use hota k vo chij ache se yaad ho jaye
@ambikaroy13132 ай бұрын
Very simple n sorted thank u 🙏
@rpawar25256 ай бұрын
This will certainly boost the confidence of beginners.
@andamanminiv-logs3 ай бұрын
Thank you so much sir ❤🙏🙏 Background music 😢 please skip background music
@vikrantmitharwal64742 ай бұрын
Bro don't run music in the background it creates a lot of disturbance but your explanation is awesome Fully understandable
@AbdulKarim-ms1xb10 күн бұрын
mein seekhney ki koshish kar raha hoon aur ziada knowledge nahi hey bas shouqia seekh raha hoon mein aik retired person hoon Allah aapko iemaan ata fermaey aur bht kaamyabian ata fermaey
@Chowdary1307 ай бұрын
Thank you , This video is very helpful for beginners for those who have completed python basic tutorials....
@NowEnd-le5ig6 ай бұрын
code with harry wala
@tejaswinikamble61983 ай бұрын
Bahut easily understand your video 😊
@wizardgaming64986 ай бұрын
Nice project simple and clear 😊
@manishpandey79446 ай бұрын
Thanks man, this was very easy and straight forward...
@BgmiSaurabh-qb7te8 ай бұрын
Bro Don't Loose Hope Your Content Is very impressive❤
@mohammadahmed3323 ай бұрын
Thanks brother your video is very informative.
@VISUALEDITFY8 ай бұрын
# 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 😃😃
@FCS_sanin7 ай бұрын
I can do this in c
@B2vlog997 ай бұрын
Bro code dena toh c ka.@@FCS_sanin
@sirineelimasaride97623 ай бұрын
nicely explained...thankyou &can you plz keep low background music
@mohammedaadil38726 ай бұрын
Awesome explanation...next part please...
@anmolchourasiya124 ай бұрын
Bhai thankyou kuch seekhne ko mila❤
@vandnasharma97996 ай бұрын
Thanks for your guidance i make the same using tkinter 👍😃💞
@adityajunghare84779 ай бұрын
Bhai you are jem ... Nice video 😊
@maheshramteke27657 ай бұрын
Good video. Really helpful and useful for beginners in python
@Swati_sinha058 ай бұрын
Thank you bhya bht Easley apne bta diya Thanku so much bhiya
@MoizButt24203 ай бұрын
bro make some more projects like this. This is very helpful for me
@rupakrajora7 ай бұрын
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
@Activitieswithshruti2 ай бұрын
Items ki quantity ka bhi program btao
@kakashi38865 ай бұрын
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
@EditsByShaurya079 ай бұрын
Why Only 343 Views He Deserve More..
@nikhilgowda85444 ай бұрын
Your videos are awesome 🔥🔥🔥🔥🔥🔥
@NITESH_Kumar766 ай бұрын
Sir ji ❤❤❤❤❤❤❤❤ you are very smart 🤓🤓🤓
@UjjwalSemwal-xq6os7 ай бұрын
Sir ek data analysist ki bhi Playlist bana do
@OPAyanMEHARYT4 ай бұрын
Use for loop to do item 1 to minimize work
@awaissaleem-n5e28 күн бұрын
Good brother keep doing this
@SenmaBhavesh-v7d4 ай бұрын
It's a so interesting sir 😊❤
@kavitanagpal88637 ай бұрын
Very good video , lovely nice to watch
@k-edits-e15 ай бұрын
Bro 🤝♥️Keep shine ♥️💎
@DaigiftАй бұрын
rs mount ke bad me lagaya jata ha bhai like (20Rs) and doller mount ke pahale like ($5) just for knowledge
@umairmohiuddin63075 ай бұрын
you can add more logics my taking input in numbers and for exit 0
@shamalshelar38343 ай бұрын
Please make video on inventory management project
@bisht_5Ай бұрын
bro isme ek step ye bhi hona chahiye ki customer ki jaise 2 coffee chahiye toh ??
@ifthiquarahmed520023 күн бұрын
Excellent💯
@VashuDevRao27 күн бұрын
Very nice 👍🏻 Bhai
@palakg_187 ай бұрын
Very nice project bhaiya
@funshortscreator6 ай бұрын
Helpful really awesome ❤😊
@anikettripathi1160Ай бұрын
I made sure to keep asking unless the user enters 'no'/'n', and used for loop menu = { 'Pizza':40, 'Pasta':50, 'Burger':60, 'Salad':70, 'Coffee':80 } total_cost = 0 print("Welcome to our resturant, Here's the menu ") for k,v in menu.items(): print(f'{k}: Rs{v}') order = input(' Enter your first item you want to order: ').strip().capitalize() while order not in menu.keys(): print("Ordered item isn't available") for k,v in menu.items(): print(f'{k}: Rs{v}') order = input(' Enter your first item you want to order: ').strip().capitalize() total_cost += menu[order] # The while True loop ensures the program keeps asking if the user wants to order something else until the user enters no. while True: choice = input('Anything else, you wanna order? (yes/no) : ').strip().lower() if choice in ['y','yes']: another_order = input('enter the second item: ').strip().capitalize() while another_order not in menu.keys(): print(' wrong input! choose from the below given options only.') for k,v in menu.items(): print(f'{k}: Rs{v}') another_order = input(' enter the second item: ').strip().capitalize() total_cost += menu[another_order] print(f' Your total cost: Rs{total_cost}') elif choice in ['n','no']: print(f' Your total cost: Rs{total_cost} Thank You for coming!') break # Exit the loop and program else: print('Invalid input! Try again. ')
@Ajyyt6 ай бұрын
Good video for beginners ❤
@sarikachouhan79258 ай бұрын
Tqsm Bhai ,this video is amazing😍
@rajeshwaryk20072 ай бұрын
Sir , please tell me...Which software ur used fr this python? And ..for practice code Which software is best
@rajeevyadav16375 ай бұрын
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
@sanchitapahade93996 ай бұрын
Best tutorial but no need to add background music it irritates .
@hritikRaj209 ай бұрын
Bhai incredible bhai ❤❤❤❤❤
@barriramadevi24465 ай бұрын
Very good explanation
@jyotsana6094Ай бұрын
Very good..
@privategaming5553Ай бұрын
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.
@typicalshorts22863 ай бұрын
Both hard sir 💪💪
@revealinfo80606 ай бұрын
CSS p bh vdeo bnai Bhai
@madhabpatra58006 ай бұрын
Thank you so much sagar 🙏🙏
@Dope1987 ай бұрын
Its similar to Networkchuck video but it has additional code and improvements to it
@phaneedrakumaribharadwaj23929 ай бұрын
Nice attempt lot of optimization can be donr
@shwetamehta6561Ай бұрын
I want a project on blood bank.
@nirmalrawal39959 күн бұрын
Bhai explain axa krte ho but pls background music mut dala kro
@abbaskika54607 ай бұрын
Bhai, your video well explained. I just want to know why I downloaded Python . Let me know, please. thanks
@-NarutoUzumaki3344 ай бұрын
Nice Video Bro 👌
@ibrahimmd7597 ай бұрын
Really helpful ❤❤❤
@shreyadhiman27513 күн бұрын
Amazing 😊
@Hassanmujtaba743 ай бұрын
❤❤❤ well done
@Gungun_._verma-35 ай бұрын
good project according to a beginner
@intensepower95398 ай бұрын
Very nice explanation bhai
@SaifAli-eh8lq6 ай бұрын
great sir thank u soo much🤗
@codingwithsagarcw6 ай бұрын
Most welcome
@chandrasekars89046 ай бұрын
This is really an excellent channel on Python like "techie talkee"
@rajendrakumar-el2nb4 ай бұрын
Can you please upload a full python course
@dulamsindhuja680428 күн бұрын
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?
@LaadiarmyHR2 ай бұрын
Bhaiya "Yes" karne ke bad aage another item kaise show kare 🎉🎉❤❤