Free cookie consent management tool by TermsFeed Python Set - issuperset method | Pythontic.com

Python Set - issuperset method

Method Name:

issuperset(anotherSetObject_in)

Method Overview:

Determines whether a set is a superset of another set passed as the parameter .

Parameters:

anotherSetObject_in: A Python set is checked whether it is the superset of this parameter.

Example:

# Example Python program that finds whether 
# a set is a super set of a given set
animals          = {"Protozoa", "Insects","Fish","Amphibians","Reptiles"}
invertebrates     = {"Protozoa", "Insects"}
result = animals.issuperset(invertebrates)
print(result)

Output:

True

 


Copyright 2025 © pythontic.com