def ispis(n): for k in range(1,n+1): print(k, end= ' ') n = input('n = ') n = int(n) ispis(n)