input: Write a function to generate a list in Python using a while loop that appends the current number to the list. The function should accept the start number, the end number, and the step size as parameters. The function should return a list generated according to the input parameters.
  
  def generate_list(start, end, step):
      my_list = []
      num = start
      while num < end:
          my_list.append(num)
          num += step
      return my_list
  
  assert generate_list(0, 10, 1) == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
  assert generate_list(5, 15, 2) == [5, 7, 9, 11, 13]
  assert generate_list(1, 1, 1) == []
  assert generate_list(0, 5, 2) == [0, 2, 4]
  assert generate_list(10, 0, -2) == []
output: def generate_list(start, end, step):
      my_list = []
      num = start
      while num < end:
          my_list.append(num)
          num += step
      return my_list