input: Write a function to move all zeroes in a list to the end of the list. The function should return the modified list. If the given list is empty then return the 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, 0, 5, 0, 2])==[5, 2, 0, 0, 0, 0, 0]
  assert move_zeroes([1, 2, 3, 4, 5, 6, 7])==[1, 2, 3, 4, 5, 6, 7]
  assert move_zeroes([])==[]
  assert move_zeroes([0, 0, 0, 0])==[0, 0, 0, 0]
output: def move_zeroes(lst):
      non_zeroes = [num for num in lst if num != 0]
      zeroes = [0] * (len(lst) - len(non_zeroes))
      return non_zeroes + zeroes