Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Amount of Pizzas Wanted
- amountwantedtemp = input("Please enter the amount of pizzas total that the customer wants to purchase:\n ")
- while True:
- if(amountwantedtemp.isdigit() and int(pizzaAmountTemp) < 6):
- amountwanted = int(amountwantedtemp)
- break
- elif(amountwantedtemp.isdigit() == False):
- print("Please only enter a number from 1-5")
- elif(amountwantedtemp.isdigit() and int(amountwantedtemp) > 5):
- print("The customer can only order a maximum of 5 pizzas")
Add Comment
Please, Sign In to add comment