input: Write a function to print all the odd numbers from 1 to a given positive integer n. The function should take n as an input parameter.
  assert odd_numbers(10)==print(1, 3, 5, 7, 9)
  assert odd_numbers(15)==print(1, 3, 5, 7, 9, 11, 13, 15)
  assert odd_numbers(1)==print(1)
  assert odd_numbers(0)==None
output: def odd_numbers(n):
      for i in range(1, n + 1, 2):
          print(i, end=' ')