-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMovieticketBooking
More file actions
24 lines (24 loc) · 1.01 KB
/
MovieticketBooking
File metadata and controls
24 lines (24 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
while True:
age = int(input("Enter Your Age: "))
if age >= 18:
ticket = input("Do you have a movie ticket? (y/n): ")
if ticket == "y":
print("\nYou are allowed to watch the movie.")
elif ticket == "n":
print("\nYou cannot watch the movie without a ticket.")
else:
print("\nYou Haven't Entered Anything.")
elif age >= 15 and age < 18:
print("\nYou can watch the movie only with parents.")
ticket = input("Do you have a movie ticket? (y/n): ")
parents = input("Are your parents with you? (y/n): ")
if ticket == "y" and parents == "y":
print("\nYou are allowed to watch the movie with your parents.")
else:
print("\nYou are NOT allowed to watch the movie.")
else:
print("\nYou are too young to watch the movie.")
again = input("\nDo you want to run again? (y/n): ")
if again.lower() != "y":
print("\nProgram ended. Goodbye!")
break