input: Write a python function to generate a list of odd numbers from 1 to a given number.
  assert generate_odd_numbers(10) == [1, 3, 5, 7, 9]
  assert generate_odd_numbers(25) == [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25]
  assert generate_odd_numbers(15) == [1, 3, 5, 7, 9, 11, 13, 15]
output: def generate_odd_numbers(n):
      return [x for x in range(1, n + 1) if x % 2 != 0]