fork download
  1. # your code goes here
  2. n=int(input())
  3. for i in range(n):
  4. for j in range(i+1):
  5. print(i+1, end=" ")
  6. print()
Success #stdin #stdout 0.08s 14204KB
stdin
7
stdout
1 
2 2 
3 3 3 
4 4 4 4 
5 5 5 5 5 
6 6 6 6 6 6 
7 7 7 7 7 7 7