Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def isSubset(s1, s2):
- s3 = s1.union(s2)
- for i in s1:
- x = i
- print(x)
- for j in s3:
- y = j
- print(y)
- if x == y:
- return True
- return False
- s1 = {1, 2, 3, 4, 5}
- s2 = {0, 1, 2}
- print(isSubset(s1, s2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement