Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1.  
  2. #Input
  3. 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")
  4. Group = int(input("Please enter the amount of people in your group: "))
  5. Price_List = []
  6.  
  7. for i in range(Group) :
  8. Name = input("Please enter your name: ")
  9. Age = int(input("Please enter your age: "))
  10. if Age >= 18:
  11. Price = (" £10")
  12. elif Age < 18 and Age > 5:
  13. Price = (" £5")
  14. elif Age <5:
  15. Price = (" Free")
  16. Price_List.append(Name + Price)
  17. print ("Here is the price summary:")
  18. print(Price_List)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement