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