Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
```python
move_zeros([False,1,0,1,2,0,1,3,"a"]) # returns[False,1,1,2,1,3,"a",0,0]
```
def move_zeros(array):
    a_len = len(array)
    array = [v for v in array if type(v) is bool or v != 0]
    array.extend([0]*(a_len-len(array)))
    return array
def move_zeros(array):
    a_len = len(array)
    array = [v for v in array if type(v) is bool or v != 0]
    array.extend([0]*(a_len-len(array)))
    return array