input: 
  def generate_list_with_while_loop(start: int, end: int) -> List[int]:
      """ Generate a list using a while loop in Python that appends the current 
      number to the list from the given start to the end (exclusive).
      >>> generate_list_with_while_loop(0, 10)
      [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
      >>> generate_list_with_while_loop(5, 8)
      [5, 6, 7]
      """
  
output:     result = []
      current = start
      while current < end:
          result.append(current)
          current += 1
      return result