To print nos in forward and reverse order

 t=1

for x in range(9):

print(t*t)

t=t*10+1

pass