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
The simple mistake in your code is the placement of count = count + 1. It should be placed after the second for loop block. I have made a simple change in your own code to obtain the output you want.
from __future__ import print_function
count = 0
for i in range(10):
for j in range(0, i):
print(count,end='')
count = count +1
print()
This will give the output you want with the code you wrote. :)