Python Set isdisjoint() Method


Python Set isdisjoint() Method

  • Python Set isdisjoint() method checks whether the two sets are disjoint sets or not. 

  • If the sets are disjoint, this method returns true else it returns false. 

  • Two sets are said to be disjoint if they do not have any common elements.


  • set.isdisjoint(set)

Parameter Values

  • set - The set to search for equal items in set.




Post a Comment

Post a Comment (0)