The 'issuperset( )' Function takes the values from both the Sets and checks if all the values from Set 2 is also present in Set 1.
Let us understand with the below example.
x = {"Kriti", "Sia"} y = {"Sia", "Andrew", "Kriti"} z = x.issuperset(y) print(z)
So, in the above code we have created a 'Set' and put the names, 'Kriti' and 'Sia' to the variable 'x'.
Next, we have put the names, 'Sia', 'Andrew' and 'Kriti' in another set 'y'.
And used the 'issuperset( )' Function next.
And since, all the elements of Set 'y'(i.e. 'Kriti', 'Sia' and 'Andrew') is not present in the Set 'x', 'issuperset( )' returns False.
And we get the below output,