testpython (Halton Hills Minor Hockey)

Printtestpython

PyScript Example

<py-script> print("HHMH Registration Help App") print() # 1. AGE Question age = int(input("What is your player age by the end of the year? ")) print() # U5 if age == 4: print("Sign up for Mini Thunder House League from the Registration menu.") # U6 elif age == 5: print("Sign up for Mini Thunder House League from the Registration menu.") # U7 elif age == 6: U7 = input("Are you interested in playing U7 Junior Thunder MD hockey? ").lower() if U7 == "yes": print() print("Do NOT sign up for House League. Purchase an Evaluation Card from the Tryouts menu") elif U7 == "no": print() print("Sign up for Mini Thunder House League from the Registration menu.") else: print() print("Invalid input. Please enter 'yes' or 'no'.") elif age == 7: U8 = input("Are you interested in playing U8 Junior Thunder MD Hockey? ").lower() if U8 == "yes": print() print("Do NOT sign up for House League. Purchase an Evaluation Card for Junior Thunder from the Tryouts menu") elif U8 == "no": print() print("Sign up for Junior Thunder House League from the Registration menu.") else: print() print("Invalid input. Please enter 'yes' or 'no'.") elif age == 8: U9 = input("Are you interested in playing U8 Junior Thunder MD Hockey? ").lower() if U9 == "yes": print() print("Do NOT sign up for House League. Purchase an Evaluation Card for Junior Thunder from the Tryouts menu") elif U9 == "no": print() print("Sign up for Junior Thunder House League from the Registration menu.") else: print() print("Invalid input. Please enter 'yes' or 'no'.") elif age >= 9 and age <= 17: U1018 = input("Are you interested in playing Rep Hockey? ").lower() if U1018 == "yes": print() print("DO NOT register for House League. Visit our Tryout menu to purchase a Tryout Card") elif U1018 == "no": print() print("Vist Registration menu and sign up for House League.") else: print() print("Invalid input. Please enter 'yes' or 'no'.") elif age>=18 and age <=21: U21 = input("Are you interested in playing Rep Hockey (U21)? ").lower() if U21 == "yes": print() print("DO NOT register for House League. Visit our Tryout menu for information and to purchase a Tryout Card if applicable.") elif U21 == "no": print() print("Vist Registration menu and sign up for House League.") else: print() print("Invalid input. Please enter 'yes' or 'no'.") else: print() print("Invalid input. Please enter age 4 to 21") print() print("Thanks for using our app!") </py-script>