def select_seat(seat):
print(' [좌석 현황]')
print('====================')
print('1 2 3 4 5 6 7 8 9 10')
print('====================')
for i in range(10):
print(seat[i], end = ' ')
print()
a = int(input("좌석 번호 선택:"))
seat[a-1] += 1
print('좌석을 예약했습니다')
print()
continue_select(seat)
def continue_select(seat):
print(' [[좌석 현황]]')
print('====================')
print('1 2 3 4 5 6 7 8 9 10')
print('====================')
for i in range(10):
print(seat[i], end = ' ')
print()
a = input('계속하시겠습니까?(y/n)')
if a == 'y':
select_seat(seat)
elif a == 'n':
print('종료했습니다')
seat = []
for i in range(10):
seat.append(0)
i = select_seat(seat)