a=[i for i in range(1,10) if i%2==0]print(a)c=[(x,y) for x in range(5) if x%2==0 for y in range(5) if y%2==1]print(c) M=[[1,2,3],[4,5,6],[7,8,9]]N=[[2,2,2],[3,3,3],[4,4,4]]d=[M[i][2] for i in range(len(M))]print(d)e=[M[i][i] for i in range(len(M))]pr…