input: Write a function to print all the odd numbers from 1 to a given number n. The function should take an integer n as an input and print each odd number in the range from 1 to n. If the input is less than 1, the function should not print anything.
  assert print_odd_numbers(10)
  assert print_odd_numbers(1)
  assert print_odd_numbers(0)
  assert print_odd_numbers(5)
  assert print_odd_numbers(-1)
output: def print_odd_numbers(n):
      if n >= 1:
          for i in range(1, n + 1, 2):
              print(i)