#What pizza's. Delivery or pick up?
#IF THE ORDER IS FOR DELIVERY:
#A 3$ delivery charge to be added to the total cost.
#Get customers name, address and phone number (contact details).
#Show pizza's and prices.
#IF THE ORDER IS FOR PICK UP:
#Get customers name.
#Show pizza's and prices.
#Pizza's
1 = ("Apricot Chicken $13.50")
2 = ("Meat Lovers $13.50")
3 = ("Vegetarian $13.50")
4 = ("Double Cheese $13.50")
5 = ("Hawaiian $13.50")
6 = ("Pepperoni $8.50")
7 = ("Beef and Onion $8.50")
8 = ("Ham and Cheese $8.50")
9 = ("Tomato Margherita $8.50")
10 = ("Classic Italian $8.50")
11 = ("BBQ Chicken and Bacon $8.50")
12 = ("Italian Veg $8.50")
def hi ():
pass
while True:
try:
D/P = (input("What pizza's do you want?"))
break
except ValueError:
pass
print ("Sorry. What ever you said is not a valid entry, try again!")
def hi2 ():
pass
while True:
try:
Pizza = (input("how do you want to recive the pizza's?.. Delivery or Pick up"))
if Pizza == 'D':
Contact = (input("What is your Name, Delivery address and Contact details?"))
print ("It's going to cost you...")
print ("$",#Here i need a code to add the pizza's prices together and the delivery charge of $3.
print (("Your ordering") , D/P ,"Pizza's")
print (("Thank you") , Contact ,".")
break
if Pizza == 'P':
print ("It's going to cost you...")
print ("$",#Here i need a code to add the pizza's prices together.
print (("Thank you for ordering") , D/P ,"Pizza's")
break
elif Pizza != 'D' or 'P':
print ("You need to tell me if you want it Delivered or Pick up!")
except:
pass
i need to figure out a math code for the adding of pizza's and delivery charge.
Where it says "print (("Thank you") , Contact ,".")" it don't seem to work.
And also make a loop in it so the customer can cancel the order at anytime, and restarts it or just quit (deleting what ever the customer has put in.

New Topic/Question
Reply



MultiQuote




|