Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- floors = int(input())
- rooms_per_floor = int(input())
- for floor in range(floors, 0, -1):
- if floor % 2 == 0:
- room_type = 'O'
- else:
- room_type = 'A'
- if floor == floors:
- room_type = 'L'
- for room in range(rooms_per_floor):
- print(f'{room_type}{floor}{room}', end=' ')
- print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement