1. print("Hello, welcome to the skate arena!")
  2. skatenum = input("Would you like to purchase skates? (yes/no) --> ")
  3. if skatenum.lower() == 'yes':
  4. skates = int(input("How much of them would you like? One pair is $2.99 (1, 2, 3)"))
  5. if skates == 1:
  6. print("Ok, that is $3")
  7. elif skates == 2:
  8. print("Ok, that is $6")
  9. elif skates == 3:
  10. print("Ok, that is $9")
  11. elif skates > 3:
  12. print("Sorry, we do not give out that number of pairs")
  13. else:
  14. print("Please get out of Arena.")
  15. elif skatenum.lower() == 'no':
  16. print("Ok, then please sit down on tribune")
Comments powered by Disqus