class Solution(object):

```
def moveZeroes(self, nums):
index=0
count=0
while count < len(nums):
if nums[index] == 0:
nums.pop(index)
nums.append(0)
index -= 1
count += 1
index += 1
```