input: Write a python function to generate a list of numbers from 1 to 10 using a for loop.
  assert generate_numbers() == [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
output: def generate_numbers():
      numbers = []
      for i in range(1, 11):
          numbers.append(i)
      return numbers