def move(nums: list):
return min([i % 2 for i in nums].count(0), [i % 2 for i in nums].count(1))
assert move([1,2,3]) == 1
assert move([2,2,2,3,3]) == 2
def move(nums: list):
a = 0
b = 0
for i in nums:
if i % 2 == 0:
a += 1
else:
b += 1
return min(a, b)
assert move([1, 2, 3]) == 1
assert move([2, 2, 2, 3, 3]) == 2