Create a simple Python Program about concert ticketing system that allows users who are 18 years old to buy tickets. The ticket prices are as follows.
VIP- 4,500
Patron- 3500
Box regular- 2500
age=int(input("How old are you?: "))
if age>=18:
print("1. VIP - 4500")
print("2. Patron- 3500")
print("3. Box regular- 2500")
type=int(input("Select type: "))
if type ==1:
print("Ticket price is: 4500")
elif type ==2:
print("Ticket price is: 3500")
elif type ==3:
print("Ticket price is: 2500")
else:
print("Wrong type")
else:
print("Wrong age")
Comments
Leave a comment