I couldn't pass the test case even though the required output is attained.
here is my code.
R=int(input())
n=1
for row in range(1,R+1):
for col in range(1,row+1):
print(n,end=" ")
n+=1
print()

I couldn't pass the test case even though the required output is attained.
here is my code.
R=int(input())
n=1
for row in range(1,R+1):
for col in range(1,row+1):
print(n,end=" ")
n+=1
print()