Mini Project in Python | Python for Beginners |

Поділитися
Вставка
  • Опубліковано 28 гру 2024

КОМЕНТАРІ • 303

  • @alvinrock7190
    @alvinrock7190 8 місяців тому +14

    Thanks Bro!
    I'm new here, and love to watch Your practical video with detailed and step by step explanation. Thanks again💖

  • @divyanshugoyal663
    @divyanshugoyal663 8 місяців тому +8

    Bade bhaiya bhut acha explain krte ho aap such mai bhut hi jaadaaaaaaaaaaaaaaaaaaaaaaaaa accha

    • @codingwithsagarcw
      @codingwithsagarcw  8 місяців тому +3

      Thanks bhai aise hi padhte rho

    • @Ayushontop09
      @Ayushontop09 6 місяців тому +2

      ​​@@codingwithsagarcw Your explanation is better than code with hurry
      Please makes like this types of videos ❤ |

    • @ks97626
      @ks97626 2 місяці тому

      English please

  • @The_Developer_21
    @The_Developer_21 8 місяців тому +116

    Bhai I really feel sad after looking views on this video, you are brilliant but why people don't come here

    • @onlylakshyaff5296
      @onlylakshyaff5296 8 місяців тому +2

      Bhai vahi tou same

    • @GouravDas-m5c
      @GouravDas-m5c 8 місяців тому +9

      Baki Sab nude reel dekhne me busy he 😅

    • @Shares4you-v3z
      @Shares4you-v3z 6 місяців тому +2

      Right mai bhi tahel tahel te pohoch gaya yahan 😂

    • @NazimaNazimabanu-e8s
      @NazimaNazimabanu-e8s 14 днів тому

      Great things are for great people not for all😊🎉

  • @avinashparchake7935
    @avinashparchake7935 7 місяців тому +85

    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")

    • @marsbgmi1391
      @marsbgmi1391 6 місяців тому

      I was also going to suggest the same

    • @gyanaranjansahoo6927
      @gyanaranjansahoo6927 5 місяців тому +2

      If "another_order" is yes then what will happen ??

    • @marsbgmi1391
      @marsbgmi1391 5 місяців тому

      @@gyanaranjansahoo6927 Then the while loop will continue running

    • @gyanaranjansahoo6927
      @gyanaranjansahoo6927 5 місяців тому +1

      @@marsbgmi1391 no dear ! "Break" will outside the loop .
      There will be error

    • @marsbgmi1391
      @marsbgmi1391 5 місяців тому

      @@gyanaranjansahoo6927 there is a condition given in a code ... If " another_order" is not equal to 'yes' .. then only it will break from loop

  • @shihabsm157
    @shihabsm157 5 місяців тому +17

    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-ml7zl
    @MeharZubair-ml7zl 3 дні тому +1

    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")

  • @devesh6916
    @devesh6916 8 місяців тому +2

    TBH bhai
    things I was searching since long you made that
    love your way of explaining things 🙏

  • @MegaRocky99
    @MegaRocky99 18 днів тому

    Thanks bro ap NY boht achy sy samjhye..

  • @anujpareek0004
    @anujpareek0004 8 місяців тому +1

    Bhai please series ko continue rakhna ❤

  • @FlashFacts.07
    @FlashFacts.07 2 місяці тому +8

    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")

    • @tanulupadhyay1802
      @tanulupadhyay1802 Місяць тому

      Bro could u tell me in which webiste or software , I can make this project and save it

    • @FlashFacts.07
      @FlashFacts.07 Місяць тому

      @@tanulupadhyay1802 You can fo it in any IDE means software like VS code and pycharm

  • @Arise-z4f
    @Arise-z4f 2 місяці тому +5

    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()

  • @atharvasharma8313
    @atharvasharma8313 22 дні тому +1

    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")

  • @abhishekchauhan263
    @abhishekchauhan263 7 місяців тому +57

    No need for this background music. You can do more low this bgm.

  • @SHADRIFAT
    @SHADRIFAT 4 місяці тому +5

    It's awesome bro. Pls make some more simple python mini project and make a playlist of this kind of thinks...

  • @shilpikanojia-f1o
    @shilpikanojia-f1o 4 місяці тому

    Amazing....
    my first project and you explained it very well.
    Thanks a lot Sagar

  • @btsinspired...4572
    @btsinspired...4572 22 дні тому +1

    Thanku brooo hame kuch bhi nahi milra tha code mile tho run nhi hora tha soo tq ise video helpful❤

  • @Its__AnkitSahu
    @Its__AnkitSahu 8 місяців тому +1

    Thanks for the phonebook project...

  • @ambikaroy1313
    @ambikaroy1313 2 місяці тому

    Very simple n sorted thank u 🙏

  • @fouzanqazi6885
    @fouzanqazi6885 2 місяці тому +1

    excellent ! Nice explanation of line by line code.. make more videos of project

  • @nishaanjum4901
    @nishaanjum4901 3 місяці тому +1

    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...❤

  • @adityajunghare8477
    @adityajunghare8477 8 місяців тому

    Bhai you are jem ... Nice video 😊

  • @GAUTAMKUMAR-dl3id
    @GAUTAMKUMAR-dl3id 2 місяці тому

    This is really a very helpful video for the freshers, who want to know how to make a unique project by themselves.🙏🙏🙏🙏🙏

  • @LikhonMia576
    @LikhonMia576 Місяць тому +2

    # 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")

  • @awaissaleem-n5e
    @awaissaleem-n5e 12 днів тому

    Good brother keep doing this

  • @fenalchudasama_18
    @fenalchudasama_18 4 місяці тому

    Please Keep continue
    You Understand Very well!!

  • @anmolchourasiya12
    @anmolchourasiya12 3 місяці тому

    Bhai thankyou kuch seekhne ko mila❤

  • @VK18Reacts
    @VK18Reacts 4 місяці тому +8

    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
      @majedkhan2094 3 місяці тому +1

      Brother can u tell me which videos u watched in the beginning of ur programming

    • @VK18Reacts
      @VK18Reacts 3 місяці тому +1

      @@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..

    • @avi.zworld
      @avi.zworld 3 місяці тому

      @@majedkhan2094 bhai pta chle to mujhe bhi btaio

  • @AdityaPrasad111
    @AdityaPrasad111 4 місяці тому

    Really nice project made the phone book completely myself it was fun learnt alot, very nice channel

  • @nikhilgowda8544
    @nikhilgowda8544 4 місяці тому

    Your videos are awesome 🔥🔥🔥🔥🔥🔥

  • @tejaswinikamble6198
    @tejaswinikamble6198 2 місяці тому

    Bahut easily understand your video 😊

  • @awaismubashar6826
    @awaismubashar6826 4 місяці тому

    my first project of python . I am feeling very joyful, Sir Thank you so muchh

  • @mohammadahmed332
    @mohammadahmed332 3 місяці тому

    Thanks brother your video is very informative.

  • @kakashi3886
    @kakashi3886 4 місяці тому

    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

  • @VashuDevRao
    @VashuDevRao 11 днів тому

    Very nice 👍🏻 Bhai

  • @VISUALEDITFY
    @VISUALEDITFY 7 місяців тому +9

    # 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_sanin
      @FCS_sanin 6 місяців тому

      I can do this in c

    • @B2vlog99
      @B2vlog99 6 місяців тому

      Bro code dena toh c ka.​@@FCS_sanin

  • @ifthiquarahmed5200
    @ifthiquarahmed5200 7 днів тому

    Excellent💯

  • @SenmaBhavesh-v7d
    @SenmaBhavesh-v7d 4 місяці тому

    It's a so interesting sir 😊❤

  • @k-edits-e1
    @k-edits-e1 4 місяці тому

    Bro 🤝♥️Keep shine ♥️💎

  • @Animal_funny_short582
    @Animal_funny_short582 6 місяців тому +2

    Thanks for you mini project is very helpful for my begginer python programming skill👏👏

    • @ihsanwahab7078
      @ihsanwahab7078 2 місяці тому

      If u done that project can u share it with me?

  • @mohammedaadil3872
    @mohammedaadil3872 5 місяців тому

    Awesome explanation...next part please...

  • @vikrantmitharwal6474
    @vikrantmitharwal6474 2 місяці тому

    Bro don't run music in the background it creates a lot of disturbance but your explanation is awesome Fully understandable

  • @Chowdary130
    @Chowdary130 6 місяців тому +1

    Thank you , This video is very helpful for beginners for those who have completed python basic tutorials....

  • @rpawar2525
    @rpawar2525 5 місяців тому

    This will certainly boost the confidence of beginners.

  • @wizardgaming6498
    @wizardgaming6498 6 місяців тому +1

    Nice project simple and clear 😊

  • @SaifAli-eh8lq
    @SaifAli-eh8lq 6 місяців тому

    great sir thank u soo much🤗

  • @manishpandey7944
    @manishpandey7944 5 місяців тому

    Thanks man,
    this was very easy and straight forward...

  • @EditsByShaurya07
    @EditsByShaurya07 8 місяців тому +2

    Why Only 343 Views He Deserve More..

  • @atharvapapade4241
    @atharvapapade4241 5 місяців тому +1

    Nice explanation of line by line code ! *I request you to make more videos like this plz*

  • @NITESH_Kumar76
    @NITESH_Kumar76 6 місяців тому

    Sir ji ❤❤❤❤❤❤❤❤ you are very smart 🤓🤓🤓

  • @sirineelimasaride9762
    @sirineelimasaride9762 3 місяці тому

    nicely explained...thankyou &can you plz keep low background music

  • @Ajyyt
    @Ajyyt 5 місяців тому

    Good video for beginners ❤

  • @funshortscreator
    @funshortscreator 6 місяців тому +1

    Helpful really awesome ❤😊

  • @barriramadevi2446
    @barriramadevi2446 5 місяців тому

    Very good explanation

  • @MoizButt2420
    @MoizButt2420 3 місяці тому

    bro make some more projects like this. This is very helpful for me

  • @BgmiSaurabh-qb7te
    @BgmiSaurabh-qb7te 7 місяців тому +1

    Bro Don't Loose Hope Your Content Is very impressive❤

  • @-NarutoUzumaki334
    @-NarutoUzumaki334 3 місяці тому

    Nice Video Bro 👌

  • @Hassanmujtaba74
    @Hassanmujtaba74 2 місяці тому

    ❤❤❤ well done

  • @vandnasharma9799
    @vandnasharma9799 5 місяців тому

    Thanks for your guidance i make the same using tkinter 👍😃💞

  • @madhabpatra5800
    @madhabpatra5800 6 місяців тому

    Thank you so much sagar 🙏🙏

  • @jyotsana6094
    @jyotsana6094 15 днів тому

    Very good..

  • @dulamsindhuja6804
    @dulamsindhuja6804 12 днів тому

    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?

  • @Gungun_._verma-3
    @Gungun_._verma-3 4 місяці тому

    good project according to a beginner

  • @ibrahimmd759
    @ibrahimmd759 6 місяців тому

    Really helpful ❤❤❤

  • @Rockstar2010-lc6bh
    @Rockstar2010-lc6bh 7 місяців тому

    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 🙏❤❤❤

  • @Swati_sinha05
    @Swati_sinha05 7 місяців тому

    Thank you bhya bht Easley apne bta diya Thanku so much bhiya

  • @typicalshorts2286
    @typicalshorts2286 3 місяці тому

    Both hard sir 💪💪

  • @BinodBabuPaudelPaudel
    @BinodBabuPaudelPaudel 12 днів тому

    it is very nice video

  • @AnandaSom
    @AnandaSom 11 днів тому

    Please sir tell me
    Why In out put when I order cofee
    Then show the total amount of items to pay is {order_total}

  • @maheshramteke2765
    @maheshramteke2765 7 місяців тому

    Good video. Really helpful and useful for beginners in python

  • @hritikRaj20
    @hritikRaj20 8 місяців тому

    Bhai incredible bhai ❤❤❤❤❤

  • @kavitanagpal8863
    @kavitanagpal8863 7 місяців тому

    Very good video , lovely nice to watch

  • @palakg_18
    @palakg_18 7 місяців тому +1

    Very nice project bhaiya

  • @andamanminiv-logs
    @andamanminiv-logs 2 місяці тому +2

    Thank you so much sir ❤🙏🙏
    Background music 😢 please skip background music

  • @rajeshwaryk2007
    @rajeshwaryk2007 2 місяці тому

    Sir , please tell me...Which software ur used fr this python? And ..for practice code Which software is best

  • @harshaldighe3463
    @harshaldighe3463 5 місяців тому

    Bhai tu hi asli programeer

  • @shortaffectionstory
    @shortaffectionstory 4 місяці тому

    Great job

  • @sarikachouhan7925
    @sarikachouhan7925 7 місяців тому

    Tqsm Bhai ,this video is amazing😍

  • @Pk36372
    @Pk36372 6 місяців тому

    Brilliant 👍👍 bro

  • @shahidmalik6107
    @shahidmalik6107 Місяць тому

    @codingwithsagarcw what if i want to print menu by printing dictionary items on separate lines rather than using single print()

  • @rupakrajora
    @rupakrajora 6 місяців тому

    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

  • @LEGHARI_
    @LEGHARI_ 4 місяці тому

    SHANDAAAAR❤

  • @studying6108
    @studying6108 25 днів тому

    This video is underated

  • @nikitaamale9156
    @nikitaamale9156 6 місяців тому

    thank you sir ❤

  • @deepakroy9432
    @deepakroy9432 6 місяців тому +1

    easy pizzy thanks for practise

  • @misssignature2
    @misssignature2 8 місяців тому

    Thank you so much 💓💓💓💓

  • @intensepower9539
    @intensepower9539 8 місяців тому

    Very nice explanation bhai

  • @kedarnathnagri951
    @kedarnathnagri951 5 місяців тому

    Thanku Bhai ❤

  • @khushbuchaurasiya4683
    @khushbuchaurasiya4683 7 місяців тому

    Thank you :) ☺☺

  • @chandrasekars8904
    @chandrasekars8904 6 місяців тому

    This is really an excellent channel on Python like "techie talkee"

  • @shuvojitbiswas9105
    @shuvojitbiswas9105 5 місяців тому

    Great video

  • @phaneedrakumaribharadwaj2392
    @phaneedrakumaribharadwaj2392 8 місяців тому

    Nice attempt lot of optimization can be donr

  • @BCAWALASTUDENT
    @BCAWALASTUDENT 5 місяців тому

    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 ?

  • @ifthiquarahmed5200
    @ifthiquarahmed5200 7 днів тому

    If we type no and yes
    Will it take small letters or show errors

  • @shwetamehta6561
    @shwetamehta6561 21 день тому +1

    I want a project on blood bank.

  • @Daigift
    @Daigift 14 днів тому

    rs mount ke bad me lagaya jata ha bhai like (20Rs) and doller mount ke pahale like ($5) just for knowledge

  • @privategaming5553
    @privategaming5553 Місяць тому +1

    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.

  • @satyaprakashmane4142
    @satyaprakashmane4142 6 місяців тому +1

    Bhai condition another order wali condition execute nhi ho Rahi please reply

  • @rajeevyadav1637
    @rajeevyadav1637 5 місяців тому

    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

  • @shamalshelar3834
    @shamalshelar3834 3 місяці тому

    Please make video on inventory management project

  • @ENGRWAQASALISHAH
    @ENGRWAQASALISHAH 7 місяців тому +1

    2nd part of this project link plz???