Advertisement
Ivdvw

Untitled

Dec 3rd, 2022
785
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. entrance, flour = int(input()), int(input())
  2. for i in range(entrance,0,-1):
  3.     if i == entrance:
  4.         for j in range(flour):
  5.             print(f'L{i}{j}',end=' ')
  6.     elif i%2 == 0:
  7.         for j in range(flour):
  8.             print(f'O{i}{j}',end=' ')
  9.     else:
  10.         for j in range(flour):
  11.             print(f'A{i}{j}',end=' ')
  12.     print('')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement