class Solution(object):

def moveZeroes(self, nums):

"""

:type nums: List[int]

:rtype: void Do not return anything, modify nums in-place instead.

"""

```
numOfZero = nums.count(0)
n = len(nums)
if numOfZero == len(nums) or numOfZero == 0:
return
for i in range(n):
if nums[i] == 0:
del nums[i]
for i in range(numOfZero):
nums.append(0)
```