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