Red Security

Full Version: Amazing Python Program For beginners
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Image: 1*RJMxLdTHqVBSijKmOO5MAg.jpeg]

In this program all the concepts which we discussed in previous threads are included so make sure to run it and try to understand each line of code don't just copy paste it if you have any problem in code just ask


Code:
# Program to automate our coffee shop
print("Hi, There Welcome to our coffee shop")

name = input("What is your name?\n")


if name == 'covid':
  print("Hey, are you evil or not? ")
  status = input()
  if status == 'yes':
    print("Evils are not welcomed here get lost")
    exit()
  elif(status == 'no'):
    print("Hy "+ name +""", So you are of that good ones thank you so much for coming in today. \n\n\n""" )
else: 
    print("Hello "+ name +""", thank you so much for
coming in today. \n\n\n""" )
order = input ("""We have the following menu
1. Black Coffee
2. Espresso
3. Latte
4. Cappucino             
What would you like to take?\n""")

if order == 'Black Coffee':
  price == 5
elif order == 'Espresso':
  price == 8
elif order == 'Lattee':
  price == 10
elif order == 'Cappucino':
  price == 12
else:
price = 10
quantity = int(input("How many cup of coffee you wants: "))
print("Ok sir your order for " + order + " will be provided soon,")
bill = quantity * price
print("Hope you enjoy our services, Here\'s your bill: "+"$" +
str(bill))
print(name + " we will have your " +
str(quantity) + " " + str(order) + " ready for you in a moment")


("Allah Hafiz" and "Good Bye" Till the next post )
"Keep Learning and Keep exploring"