input: Write a function to print all the odd numbers from 1 to 10 using a loop in Python. The function should not take any input and should print the numbers directly within the function.
  assert print_odd_numbers()  
  # This assert statement is used to check if the function runs without errors and prints the correct output.
output: def print_odd_numbers():
      for i in range(1, 11, 2):
          print(i)