Guest User

Untitled

a guest
Nov 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1.  
  2. #Amount of Pizzas Wanted
  3. amountwantedtemp = input("Please enter the amount of pizzas total that the customer wants to purchase:\n ")
  4.  
  5. while True:
  6. if(amountwantedtemp.isdigit() and int(pizzaAmountTemp) < 6):
  7. amountwanted = int(amountwantedtemp)
  8. break
  9.  
  10. elif(amountwantedtemp.isdigit() == False):
  11. print("Please only enter a number from 1-5")
  12. elif(amountwantedtemp.isdigit() and int(amountwantedtemp) > 5):
  13. print("The customer can only order a maximum of 5 pizzas")
Add Comment
Please, Sign In to add comment