Examples:
Let set A = {2, 4, 5, 6} and set B = {7, 8, 9, 10} set A and set B are said to be disjoint sets as their intersection is null. They donot have any common elements in between them.
Syntax :
set1.isdisjoint(set2)
Parameters:
The isdisjoint () method only takes one argument.
It may also require iteration (list, tuple, dictionary and string) to disjunction (). The isdisjoint () method automatically converts the iterables to sets and checks if the sets are disjoint or not.
Returned value:
returns True if the two sets are disjoint.
returns False if the twos sets are not disjoint.
Below is the implementation of the above approach in Python3:

Output:
set1 and set2 are disjoint? True set1 and set3 are disjoint? False