input: Write a function to generate a list using a while loop in Python and append the current number to the list. The function should start with a number provided as an argument and append numbers until it reaches another number provided as an argument. Return the generated list.
  assert generate_list(0, 10)==[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
  assert generate_list(5, 15)==[5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
  assert generate_list(10, 20)==[10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
  assert generate_list(0, 0)==[]
  assert generate_list(-3, 3)==[-3, -2, -1, 0, 1, 2]
output: def generate_list(start, end):
      result = []
      while start < end:
          result.append(start)
          start += 1
      return result