input: Write a function to move all zeroes in a list to the end of the list. The function should return a new list with all zeroes at the end while maintaining the order of the non-zero elements. If the input list is empty, the function should return an empty list.
  def move_zeroes(lst):
      num_non_zeroes = 0
      for num in lst:
          if num != 0:
              num_non_zeroes += 1
      new_lst = []
      for i in range(num_non_zeroes):
          new_lst.append(lst[i])
      for _ in range(len(lst)-num_non_zeroes):
          new_lst.append(0)
      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, 1, 5, 2])==[3, 1, 5, 2, 0, 0, 0]
  assert move_zeroes([3, 1, 5, 2])==[3, 1, 5, 2]
  assert move_zeroes([])==[]
output: def move_zeroes(lst):
      new_lst = [num for num in lst if num != 0]
      new_lst.extend([0] * (len(lst) - len(new_lst)))
      return new_lst