Skip to content

Instantly share code, notes, and snippets.

@KatUser
Last active April 13, 2021 12:02
Show Gist options
  • Save KatUser/f6e09c897b0f0d35feae00d8047bb572 to your computer and use it in GitHub Desktop.
Save KatUser/f6e09c897b0f0d35feae00d8047bb572 to your computer and use it in GitHub Desktop.
Right Pyradime
n = int(input())
s = 0
for num in range(n):
for i in range(1, s + 1):
print(i, end='')
for j in range(s + 1, 0, -1):
print(j, end='')
print()
s += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment