Mini Project in Python | Python for Beginners |
ฝัง
- เผยแพร่เมื่อ 28 พ.ย. 2024
- Apply for LIVE 45 Days of Python (AI Oriented) Batch - codingwithsaga...
Phone Book Project - docs.google.co...
Join My 5-Day LIVE Python Workshop👇
codingwithsaga...
Get 700+ Ready-made Projects Code👇
codingwithsaga...
🔑 Access the Python Programming for Beginner Series
1- Introduction to Python - • What is Python | Pytho...
2- Comments in Python - • Comments In Python | P...
3- Print( ) in Python - • Print() function in Py...
4- Variables in Python - • Variables in Python | ...
5- Data-types in Python - • Data-types In Python |...
6- String, List & Tuple In Python - • Part-2 String, List & ...
7- Dictionary In Python - • Dictionary in Python |...
8- Input function in Python - • input ( ) function in ...
9- String Manipulation In Python - • Master String Manipula...
10 - Operators In Python Part-1 - • Operators In Python | ...
11- Operators In Python Part-2 • Operators In Python | ...
12- Conditional Statements In Python - • Conditional Statements...
🔑 Access the Python Project for Beginner Series:
1- Image Slideshow Project - • Build a Python Image S...
2- QR Code Generator to Accept Payment - • Accept Payments with P...
3- Text Editor App - • Build a Text Editor Ap...
4- Automate your Task - • Goodbye Manual Search,...
5- Create a Digital Clock - • Build a Digital Clock ...
6- Tic-Tac-Toe Game - • Tic Tac Toe Game In Py...
7- Rock Paper Scissor - • Rock Paper Scissor Gam...
8- Rent Calculator App - • Rent calculator in pyt...
Connect with us:
Instagram - / codingwithsagar
Telegram - telegram.me/sa...
TH-cam - / @codingwithsagarcw
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
Thanks Bro!
I'm new here, and love to watch Your practical video with detailed and step by step explanation. Thanks again💖
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 😂
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()
No need for this background music. You can do more low this bgm.
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
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
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...❤
TBH bhai
things I was searching since long you made that
love your way of explaining things 🙏
It's awesome bro. Pls make some more simple python mini project and make a playlist of this kind of thinks...
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 TH-cam then start practicing question because doing question can teach you a lot after start coding..
@@majedkhan2094 bhai pta chle to mujhe bhi btaio
This is really a very helpful video for the freshers, who want to know how to make a unique project by themselves.🙏🙏🙏🙏🙏
Why Only 343 Views He Deserve More..
# 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")
Bhai please series ko continue rakhna ❤
❤
Thanks for the phonebook project...
Bro don't run music in the background it creates a lot of disturbance but your explanation is awesome Fully understandable
This will certainly boost the confidence of beginners.
# 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
Really nice project made the phone book completely myself it was fun learnt alot, very nice channel
excellent ! Nice explanation of line by line code.. make more videos of project
my first project of python . I am feeling very joyful, Sir Thank you so muchh
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.
')
Thank you so much sir ❤🙏🙏
Background music 😢 please skip background music
Please Keep continue
You Understand Very well!!
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?
Very simple n sorted thank u 🙏
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
Best tutorial but no need to add background music it irritates .
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.
Bahut easily understand your video 😊
Sir , please tell me...Which software ur used fr this python? And ..for practice code Which software is best
Nice explanation of line by line code ! *I request you to make more videos like this plz*
good project according to a beginner
Thank you , This video is very helpful for beginners for those who have completed python basic tutorials....
code with harry wala
Bhai thankyou kuch seekhne ko mila❤
Bro Don't Loose Hope Your Content Is very impressive❤
bro make some more projects like this. This is very helpful for me
Items ki quantity ka bhi program btao
❤❤❤ well done
Bhai you are jem ... Nice video 😊
Sir ek data analysist ki bhi Playlist bana do
SHANDAAAAR❤
Awesome explanation...next part please...
Amazing....
my first project and you explained it very well.
Thanks a lot Sagar
Bhai tu hi asli programeer
Use for loop to do item 1 to minimize work
In which terminal you are running this project?
Thanks brother your video is very informative.
Both hard sir 💪💪
nicely explained...thankyou &can you plz keep low background music
Bhi ihs tarah k aur b projects banaya kro please bhi ❤
Please make video on inventory management project
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
Nice project simple and clear 😊
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 🙏❤❤❤
Your videos are awesome 🔥🔥🔥🔥🔥🔥
bro isme ek step ye bhi hona chahiye ki customer ki jaise 2 coffee chahiye toh ??
Thanks for your guidance i make the same using tkinter 👍😃💞
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
Sir ji ❤❤❤❤❤❤❤❤ you are very smart 🤓🤓🤓
Thanks man,
this was very easy and straight forward...
आपने बहुत अच्छा समझाया
लेकिन बैकग्राउंड म्यूजिक ने परेशान कर दिया
Very good explanation
Bro 🤝♥️Keep shine ♥️💎
Can you please upload a full python course
Daily video daalo bhai
Python ka konsa version use kyea hay apnay
you can add more logics my taking input in numbers and for exit 0
Nice Video Bro 👌
brother python ka simple budget trackers ka project karaiyana by GUI
Good video for beginners ❤
@codingwithsagarcw what if i want to print menu by printing dictionary items on separate lines rather than using single print()
Please make heads tail game like we used to play in our childhood from number like 1 to 6 please please
Its similar to Networkchuck video but it has additional code and improvements to it
It's a so interesting sir 😊❤
CSS p bh vdeo bnai Bhai
Please sir play list me sabhi mini projects add kardijiey nahi mil rahe he
Helpful really awesome ❤😊
AOA BHAI,
Can you give me your complete course playlist of python
Bhaiya "Yes" karne ke bad aage another item kaise show kare 🎉🎉❤❤
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 ?
Very nice project bhaiya
This is really an excellent channel on Python like "techie talkee"
Thank you so much sagar 🙏🙏
bhai ye projects hum resume me laga skte ha?
This will be much easier if you code in C language
Thank you bhya bht Easley apne bta diya Thanku so much bhiya
Bhai incredible bhai ❤❤❤❤❤
Bhai daily video dalo please Bhai our framework ki video bhi dalo please Bhai
Good video. Really helpful and useful for beginners in python
Great job
#codingwithpragya
2nd part kedr hy es ka???
2nd part of this project link plz???
Very good video , lovely nice to watch
Waiting for new python video.
Uploading next day
School par projects banao bhai
easy pizzy thanks for practise