My college assignment so far looks like this:
data = [[1,2,3], [4,5,6], [7,8,9]]
cout = [[]]*3
for i in range(len(data)):
    for j in range(len(data[i])):
        check = data[i][j]
        print(check)
        if data[i][j] % 2 == 0:
            cout[i].append(data[i][j])      
print(cout)
and its output was
[[2, 4, 6, 8], [2, 4, 6, 8], [2, 4, 6, 8]]
but i want it to be
[[2], [4, 6], [8]]
thanks in advance
 
     
     
     
     
     
    