Python Set isdisjoint() Method

0

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.

Syntax

  • set.isdisjoint(set)

Parameter Values

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

 

 

 

Post a Comment

0Comments
Post a Comment (0)