Python Set - issuperset method

Method Name: issuperset(anotherSetObject_in)

Method Overview:

Determines whether a this/current set object forms a superset of the set being passed as parameter .

Parameters:


anotherSetObject_in: A python set object which will checked against the current/this set object to determine whether the current/this set object forms a superset of the one being passed.

Exceptions: None

Example:

>>> Animals  = {"Protozoa", "Insects","Fish","Amphibians","Reptiles"}

>>> Invertebrates = {"Protozoa", "Insects"}

>>> Animals.issuperset(Invertebrates)

True


Copyright 2024 © pythontic.com