Start | isdisjoint
 

isdisjoint(iterable)



Returnerar true om mängderna inte har något gemensamt.

Har A och B gemensamma element?

A = {"a","b","c","d","e","f","g"} B = {"h","i","j","k","e","f","g"} print(A.isdisjoint(B))
A = {"a","b","c","d","e","f","g"} B = {"h","i","j","k","l","m","n"} print(A.isdisjoint(B))
10.721921920776 ms