Python Set issubset() Method Syntax

Syntax: set_obj.issubset(other_set)

Parameter:

  • other_set: any other set to compare with.

Return: bool

Python Set issubset() Method

Python set issubset() method returns True if all elements of a set A are present in another set B which is passed as an argument, and returns False if all elements are not present in Python.

Similar Reads

Python Set issubset() Method Syntax

Syntax: set_obj.issubset(other_set) Parameter: other_set: any other set to compare with. Return: bool...

Python set issubset() Method Example

This code checks if set s2 is a subset of set s1 and prints True if it is....

Contact Us