input: 
  from typing import List
  
  def generate_list_with_while_loop(n: int) -> List[int]:
      """ Generate a list of numbers from 0 to n-1 using a while loop.
      >>> generate_list_with_while_loop(10)
      [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
      >>> generate_list_with_while_loop(5)
      [0, 1, 2, 3, 4]
      """
  
output:     result = []
      i = 0
      while i < n:
          result.append(i)
          i += 1
      return result