input: 
  from typing import List
  
  def move_zeroes(lst: List[int]) -> List[int]:
      """ Move all zeroes in a list to the end of the list while maintaining the order of non-zero elements.
      >>> move_zeroes([3, 0, 1, 0, 5, 0, 2])
      [3, 1, 5, 2, 0, 0, 0]
      >>> move_zeroes([0, 0, 0, 1, 2, 3])
      [1, 2, 3, 0, 0, 0]
      """
      count_non_zeroes = 0
      for num in lst:
          if num != 0:
              lst[count_non_zeroes] = num
              count_non_zeroes += 1
      
      while count_non_zeroes < len(lst):
          lst[count_non_zeroes] = 0
          count_non_zeroes += 1
      
      return lst
  
output:     count_non_zeroes = 0
      for num in lst:
          if num != 0:
              lst[count_non_zeroes] = num
              count_non_zeroes += 1
      
      while count_non_zeroes < len(lst):
          lst[count_non_zeroes] = 0
          count_non_zeroes += 1
      
      return lst