Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- currRow = 1
- while currRow <= n:
- currCol = 1
- ch = ord('A') + n - currRow
- while currCol <= currRow:
- print(chr(ch + currCol - 1), end="")
- currCol += 1
- print()
- currRow += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement