input: Write a function to print all the odd numbers from 1 to 10 using a loop in Python.
  assert print_odd_numbers()=="1\n3\n5\n7\n9\n"
  assert print_odd_numbers()=="1\n3\n5\n7\n9\n"
  assert print_odd_numbers()=="1\n3\n5\n7\n9\n"
  assert print_odd_numbers()=="1\n3\n5\n7\n9\n"
  assert print_odd_numbers()=="1\n3\n5\n7\n9\n"
output: def print_odd_numbers():
      result = ""
      for i in range(1, 11, 2):
          result += str(i) + "\n"
      return result