-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCinema_Hall.py
More file actions
37 lines (34 loc) · 959 Bytes
/
Cinema_Hall.py
File metadata and controls
37 lines (34 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
'''Q17. Cinema Ticket Booking
Ticket cost:
Morning Show → ₹150
Evening Show → ₹200
Night Show → ₹250
If tickets ≥ 5, give 10% discount.
'''
def Cinema_Ticket_Booking(show,cost):
if show == "morning show":
bill = 150 * cost
if cost >=5:
dis = bill * 0.10
bill -= dis
print("Ticket Price:\n", bill)
elif show == "evening show":
bill = 200 * cost
if cost >=5:
dis = bill * 0.10
bill -= dis
print("Ticket Price:\n", bill)
elif show == "night show":
bill = 250 * cost
if cost >=5:
dis = bill * 0.10
bill -= dis
print("Ticket Price:\n", bill)
else:
print("Choose mention show")
print('''Morning Show → ₹150
Evening Show → ₹200
Night Show→ ₹250''')
show=input("Enter Show:\n").strip().lower()
cost=int(input("Enter No. of Tickets:\n"))
Cinema_Ticket_Booking(show,cost)