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