fork download
  1. # Topic: Pttern Lecture-3
  2. #Question: Code 1
  3. # With Constraints ( 0 <= N <= 13 )
  4.  
  5. n = int(input())
  6. if 0<=n<=13:
  7. for i in range(n):
  8. for j in range(i, 2*i+1):
  9. print(chr(j+65), end=" ")
  10. print()
  11. else:
  12. print("Print Enter Number Between 0 to 13")
Success #stdin #stdout 0.03s 9400KB
stdin
9
stdout
A 
B C 
C D E 
D E F G 
E F G H I 
F G H I J K 
G H I J K L M 
H I J K L M N O 
I J K L M N O P Q