11 lines
284 B
Python
11 lines
284 B
Python
|
setx = set(["apple", "mango"])
|
||
|
sety = set(["mango", "orange"])
|
||
|
setz = set(["mango"])
|
||
|
issubset = setx <= sety
|
||
|
print(issubset)
|
||
|
issuperset = setx >= sety
|
||
|
print(issuperset)
|
||
|
issubset = setz <= sety
|
||
|
print(issubset)
|
||
|
issuperset = sety >= setz
|
||
|
print(issuperset)
|