Set, Set In Python, Python Programming, Data Science, Artificial Intelligence.
element of s1 is also an element of s2 . If s1 is a subset of s2 , then the issubset() method returns True; otherwise, it returns False. # issubset s1 = {3,4,5} s2 = {1,2,3,4,5} s1.issubset(s2) #Output True 3. issuperset() method: The issuperset() method is used to check whether a set is a superset