#try to avoid input function a = int(input("Enter Number of rows :")) b = ord("A") for i in range(1,a+1): print((chr(b)+" ")*i) b = b+1
Click the run button. Try to avoid input() function.