def move_zeros(array):
for element in array:
if element == 0 and type(element) is not bool:
array.append(array.pop(array.index(element)))
return array
print(move_zeros([False,1,0,1,2,0,1,3,"a"]))
My result is [1, 1, 2, 1, 3, 'a', False, 0, 0]
I don't want False to move, my program sees False as 0.