Advertisement
eNeRGy90

Untitled

Dec 2nd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. first = int(input())
  2. second = int(input())
  3. max_pw = int(input())
  4. A = 35
  5. B = 64
  6. x = 1
  7. y = 1
  8. for count in range(1, max_pw+1):
  9.     print(f"{chr(A)}{chr(B)}{x}{y}{chr(B)}{chr(A)}", end="|")
  10.     y += 1
  11.     A += 1
  12.     if A > 55:
  13.         A = 35
  14.     B += 1
  15.     if B > 96:
  16.         B = 64
  17.     if y == (second + 1):
  18.         x += 1
  19.         y = 1
  20.     if x == (first + 1):
  21.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement