count = 1 for i in range(10): for j in range(0, i): print(count, end=\'\') count = count +1 print() input()
I am writing a
I realised that the problem is solved but here's how you wanted your code to look like.
count=0 for i in range(10): for j in range(0, i): print (count, end='') count +=1 print()
i think @Dannnno answer is shorter and straight to the point :)