Create a program in Python to remove all elements of a given list with a value of 0.
[0, 1, 0, 3, 5, 0, 4]
def remove_zeroes(nums):
  return [x for x in nums if x != 0]
  
print(remove_zeroes([0, 1, 0, 3, 5, 0, 4]))