Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Input
- print("Hello and welcome to the party! Please enter the number of people in your group, then enter name and age for each member of your group so we can give a price for your tickets")
- Group = int(input("Please enter the amount of people in your group: "))
- Price_List = []
- for i in range(Group) :
- Name = input("Please enter your name: ")
- Age = int(input("Please enter your age: "))
- if Age >= 18:
- Price = (" £10")
- elif Age < 18 and Age > 5:
- Price = (" £5")
- elif Age <5:
- Price = (" Free")
- Price_List.append(Name + Price)
- print ("Here is the price summary:")
- print(Price_List)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement