input: from typing import List
  
  def generate_list_with_while(limit: int) -> List[int]:
      """Generate a list using a while loop in Python and appends the current number to the list.
      >>> generate_list_with_while(10)
      [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
      >>> generate_list_with_while(5)
      [0, 1, 2, 3, 4]
      """
      my_list = []
      num = 0
      while num < limit:
          my_list.append(num)
          num += 1
      return my_list
output:     my_list = []
      num = 0
      while num < limit:
          my_list.append(num)
          num += 1
      return my_list