Python issuperset() Method Syntax

Syntax: A.issuperset(B)

Parameter: Any other Set to compare with

Return: boolean value

 

issuperset() in Python

Python Set issuperset() method returns True if all elements of a set B are in set A. Then Set A is the superset of set B.

Similar Reads

Python issuperset() Method Syntax:

Syntax: A.issuperset(B) Parameter: Any other Set to compare with Return: boolean value...

Python issuperset() example

Example 1: Working of issubset() with two sets...