0
intersect(s1, s2) where s1 and s2 are lists representing sets, computes and return a list representing the intersection of the t
2 ответов
+ 1
list(set(s1).intersection(set(s2)))
+ 1
x=[]
def intersect(s1, s2):
for i in a:
if i in b:
x.append(i)
return x