Created
April 30, 2021 13:25
-
-
Save nuriyevn/68b546ad547de90e7b93379f95cda897 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
alpha = string.ascii_lowercase | |
n = int(input()) | |
L = [] | |
for i in range(n): | |
s = "-".join(alpha[i:n]) | |
L.append((s[::-1]+s[1:]).center(4*n-3, "-")) | |
print('\n'.join(L[:0:-1]+L)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment