I'm trying to do a function that returns the intersection between two sets:
def intersecao(conjuntoA, conjuntoB):
inter = [x for x in range(1,12) if x in conjuntoA and conjuntoB]
return inter
a = [2,4,6,7,10]
b = [3,4,6,8,10,11]
print...
asked by
26.08.2017 / 01:07