It should return the boolean value `True`,or`False`. but it doesn't return anything

a=[1, 2, 3 ,4 ,5]
for i in a:
even=
odd=
for j in a:
if(j%2==0):
even.append(j)
else:
odd.append(j)

def compareList(even,odd):
if(len(odd) > len(even)):
return True
else:
return False

Please format your code.

Is part of your code missing? You didn’t call the function…