input: Write a function to generate a list of numbers from 0 to 9 using a while loop in Python, appending each number to the list. Print the resulting list.
  assert generate_list() == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
output: def generate_list():
      numbers = []
      i = 0
      while i < 10:
          numbers.append(i)
          i += 1
      return numbers