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