Created
February 6, 2016 07:40
-
-
Save HFreni/513fe7b61367115eeeba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Welcome to Harrison's Movie Ticket Software!\nWARNING: You May Only Have 4 Guests.") | |
p1a = input("Please enter the age of your first guest: ") | |
p2a = input("Please enter the age of your first guest: ") | |
p3a = input("Please enter the age of your first guest: ") | |
p4a = input("Please enter the age of your first guest: ") | |
guests = [p1a, p2a, p3a, p4a] | |
sum = 0 | |
for guest in guests: | |
if(guest <= 12): | |
sum += 10 | |
elif(guest > 12 & guest < 65): | |
sum += 12 | |
elif(guest >=65): | |
sum += 11 | |
print("Your Total Will Be: $" + str(sum)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment