Start | intersection
 

intersection(iterable)



Snittet mellan två mängder. Dvs, de element 2 mängder har gemensamt.

Snitt mellan A och B

A = {"a","b","c","d","e","f","g"} B = {"h","i","j","k","e","f","g"} print(A.intersection(B)) print(B.intersection(A))
13.273954391479 ms