input: Write a function to move all zeroes in a list to the end of the list. If the given list is empty then return an empty list.
  def move_zeroes(lst):
      # Count the number of non-zero elements
      num_non_zeroes = 0
      for num in lst:
          if num != 0:
              num_non_zeroes += 1
    
      # Initialize the new list
      new_lst = []
    
      # Move all non-zeroes to the beginning of the new list
      for num in lst:
          if num != 0:
              new_lst.append(num)
    
      # Append 0's to the end
      for _ in range(len(lst)-num_non_zeroes):
          new_lst.append(0)
    
      # Return the new list
      return new_lst
  
  assert move_zeroes([3, 0, 1, 0, 5, 0, 2])==[3, 1, 5, 2, 0, 0, 0]
  assert move_zeroes([0, 0, 0, 3, 0, 1])==[3, 1, 0, 0, 0, 0]
  assert move_zeroes([1, 2, 3, 4, 5])==[1, 2, 3, 4, 5]
  assert move_zeroes([0, 0, 0, 0])==[0, 0, 0, 0]
  assert move_zeroes([])==[]
output: def move_zeroes(lst):
      num_non_zeroes = 0
      for num in lst:
          if num != 0:
              num_non_zeroes += 1
    
      new_lst = []
      for num in lst:
          if num != 0:
              new_lst.append(num)
    
      for _ in range(len(lst)-num_non_zeroes):
          new_lst.append(0)
    
      return new_lst