input: Write a function to generate a loop in Python that prints out all the odd numbers from 1 to 10. If the input value is not within this range then print "Invalid input".
  assert odd_numbers(10)==None
  assert odd_numbers(11)=="Invalid input"
  assert odd_numbers(5)==None
  assert odd_numbers(0)=="Invalid input"
  assert odd_numbers(15)=="Invalid input"
output: def odd_numbers(n):
      if n < 1 or n > 10:
          print("Invalid input")
      else:
          for i in range(1, n + 1, 2):
              print(i)