+ 1
How to print %2, even numbers from lists in list?
m=[[1,2,3], [4,5,6], [7,8,9]] I want to do something like: r[1] for r in m if r[1]℅2==0
4 odpowiedzi
+ 5
[[j for j in i if j % 2 == 0] for i in m]
0
Ok, but why it prints empty window?
0
Because the list wasn't printed.
0
True :) thx