Python Set isdisjoint() method

Python Set isdisjoint() method

The set.isdisjoint() method in Python returns a boolean value True if two sets are disjoint sets ( i.e. none of the elements are present in both sets), otherwise it returns False.

Syntax

Parameter

set- This parameter represents the main set.

set1- This argument signifies the other set to search for equal items.

Return

This method returns a boolean value True if two sets are disjoint sets, else it returns False.

Example 1

Output

Example 2

Output