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