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))]
print(e)
f1=[[M[i][j]*N[i][j] for i in range(3)] for j in range(3)]
print(f1)
f2=[[M[i][j]*N[i][j] for j in range(3)] for i in range(3)]
print(f2)
for i in range(4):
for j in range(1,3):
print(i*j)
d=[[i*j for j in range(1,3)]for i in range(4)]
print(d)
strings = ['a','is','with','if','file','exception']
g={s for s in strings}
print(g)
names = [['Tom','Billy','Jefferson','Andrew','Wesley','Steven','Joe'],['Alice','Jill','Ana','Wendy','Jennifer','Sherry','Eva']]
c=[j for i in names for j in i if j.count("e")>=2]
print(c)