Skip to content

Instantly share code, notes, and snippets.

@Svastikkka
Created June 21, 2020 02:31
Show Gist options
  • Save Svastikkka/1080742a8931edf95ff307c0662cd967 to your computer and use it in GitHub Desktop.
Save Svastikkka/1080742a8931edf95ff307c0662cd967 to your computer and use it in GitHub Desktop.
## Read input as specified in the question.
## Print output as specified in the question.
l=['A','B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
num=int(input())
c=0
for i in range(1,num+1):
for j in range(0,i):
print(l[i-1],end="")
print()
c=c+1
@Svastikkka
Copy link
Author

Alpha Pattern

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment