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