I have tried the following code to split a list of integers into two lists, but the problem is that I don't know how to make the program deal with each value in the list:
a = [1, 4, 7, 3, 2]
def group(L):
li = []
for i in L:
x= i/2
if x == int(x):
li.append(i)
i.remove(float(i))
print li
group(a)