Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final_sector = ord(input())
- rows = int(input())
- odd_seats = int(input())
- total_seats = 0
- for i in range(ord('A'), final_sector + 1):
- for k in range(1, rows + 1):
- currentSeats = odd_seats
- if k % 2 == 0:
- currentSeats += 2
- for o in range(ord('a'), currentSeats + 97):
- print(f'{chr(i)}{k}{chr(o)}')
- total_seats += 1
- rows += 1
- print(total_seats)
Add Comment
Please, Sign In to add comment