fork download
  1. n=input()
  2. for num in range(n):
  3. for i in range(num):
  4. print (num, end=" ") #print number
  5. # new line after each row to display pattern correctly
  6. print("\n")# your code goes here# your code goes heren=input()
Runtime error #stdin #stdout #stderr 0.01s 27616KB
stdin
5
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 2, in <module>
TypeError: 'str' object cannot be interpreted as an integer