fork download
  1. # your code goes here
  2. n=5
  3. for i in range (n):
  4. for j in range (i+1):
  5. print(chr(65+j),end=' ')
  6. print(end="\n")
Success #stdin #stdout 0.12s 14176KB
stdin
Standard input is empty
stdout
A 
A B 
A B C 
A B C D 
A B C D E