input: Write a python function to print numbers from 1 to n in a single line.
  assert print_numbers(5)== "1 2 3 4 5 "
  assert print_numbers(3)== "1 2 3 "
output: def print_numbers(n):
      return ' '.join(str(i) for i in range(1, n+1)) + ' '