Professional Documents
Culture Documents
Booked_seat = 0
prize_of_ticket = 0
Total_Income = 0
Total_seat = Row*Seats
class chart:
def chart_maker():
seats_chart = {}
for i in range(Row):
seats_in_row = {}
for j in range(Seats):
seats_in_row[str(j+1)] = 'S'
seats_chart[str(i)] = seats_in_row
return seats_chart
def find_percentage():
percentage = (Booked_seat/Total_seat)*100
return percentage
class_call = chart
table_of_chart = class_call.chart_maker()
while x != 0:
print('1 for Show the seats \n2 for Buy a Ticket \n3 for Statistics ',
'\n4 for Show booked Tickets User Info \n0 for Exit')
x = int(input('Select Option - '))
if x == 1:
print(Seats)
else:
print(Seats)
for no in table_of_chart[num].values():
print()
else:
count_num = 0
if int(list(table_of_chart.keys())[count_num]) < 9:
else:
count_key = 0
for no in table_of_chart[num].values():
else:
count_num += 1
print()
print()
elif x == 2:
if table_of_chart[str(Row_number-1)][str(Column_number)] == 'S':
prize_of_ticket = 10
prize_of_ticket = 10
else:
prize_of_ticket = 8
person_detail = {}
if conform == 'yes':
person_detail['Ticket_prize'] = prize_of_ticket
table_of_chart[str(Row_number-1)][str(Column_number)] = 'B'
Booked_seat += 1
Total_Income += prize_of_ticket
else:
continue
Booked_ticket_Person[Row_number-1][Column_number-1] = person_detail
print('Booked Successfully')
else:
else:
print()
print()
elif x == 3:
print()
elif x == 4:
if table_of_chart[str(Enter_row-1)][str(Enter_column)] == 'B':
else:
print()
else:
print()
print()
else:
print()