integers = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
evens = {0, 2, 4, 6, 8}
odds = {1, 3, 5, 7, 9}
#check for subsets
print(integers.issubset(integers)) #it is a subset of itself
print(evens.issubset(integers)) #True
print(odds.issubset(integers)) #True
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter