Commit e9c1727a authored by Siu, Pui Chung's avatar Siu, Pui Chung
Browse files

Add new file

parent b9c1ffc1
def move_zeros(array):
zeros = []
list = []
for chr in array:
if chr == 0 or 0.0:
if type(chr) == float or type(chr) == int:
zeros.append(chr)
else:
list.append(chr)
else:
list.append(chr)
return list + zeros
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment