set.issuperset() in python
"issuperset()" function is used to find whether the all the elements in the 2nd specified set is available in the another set. If all the elements are available then it will print "True".
Syntax:
set.issuperset(set_value)
Example-1
n = {10, 20, 30, 50, 60} m = {10, 20, 30} a = n.issuperset(m) print(a)
Output
True
Example-2
n = {10, 20, 30, 50, 60} m = {10, 30, 40} a = n.issuperset(m) print(a)
Output
False
Example-3
n = {"A", "B", "C", "D", "E"} m = {"A", "B", "C"} a = n.issuperset(m) print(a)
Output
True
Example-4
n = {"A", "B", "C", "D", "E"} m = {"A", "E", "F"} a = n.issuperset(m) print(a)
Output
False