for i in range(1,10): print(i) for j in range(1,1+i): print(j,end='!') for i in range(1,10): print(i)