Function Details: issuperset

Description


Report whether this set contains another set.


Extended Description


The issuperset() method checks if the set contains all elements of the specified iterable. It returns True if every element in the iterable is in the set, and False otherwise. This method is equivalent to the >= operator for sets.


Function Signature



Module: set

Class: set

Parameters



Parameter List


  • other: Iterable

Return


Returns True if the set is a superset of the specified iterable, False otherwise.


Return Type


bool

Output

Explanation

This example demonstrates the basic usage of issuperset(). s1 is a superset of s2, but s2 is not a superset of s1.