Skip to content

Instantly share code, notes, and snippets.

@HFreni
Created February 6, 2016 07:40
Show Gist options
  • Save HFreni/513fe7b61367115eeeba to your computer and use it in GitHub Desktop.
Save HFreni/513fe7b61367115eeeba to your computer and use it in GitHub Desktop.
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