Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Tane's School Holiday Camp")
- #Print the camp name at the start
- holiday_camp()
- camp_activities = ["Cultural immersion - Easy - $800 - 5 days",
- "Kayaking and pancakes - Moderate - $400 - 3 days",
- "Mountain biking - Difficult - $900 - 4 days"]
- activity_number = 0
- while activity_number < 3 :
- print(activity_number, camp_activities[activity_number])
- activity_number = activity_number + 1
- #Ask name and make sure it is not left blank
- name = ""
- while name == "":
- name = input("What is your name? ")
- if name == "":
- print("Please enter your name - You cannot leave it blank.")
- print("")
- #Ask age and make sure it is not older than a camper can be
- age = 99
- while age < 5 or age > 17 :
- if age != 99:
- print("")
- print("Your age must be between 5 and 17 to attend the camp. Please enter a valid age")
- age = int(input("How old are you? "))
- leader_question = input("You are eligible to be the camp leader. Do you want to be the camp leader? ").lower()
- if leader_question == "yes" or leader_question == "y":
- print("You are now the camp leader.")
- elif leader_question == "no" or leader_question == "n":
- print("Someone else will be chosen to be the camp leader")
- else:
- print("Answer with yes/y or no/n please")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement