- set
- issubset
set subset
examples/sets/subset.py
english = set(['door', 'car', 'lunar', 'era']) spanish = set(['era', 'lunar', 'hola']) words = set(['door', 'lunar']) print('issubset: ', words.issubset( english )) print('issubset: ', words.issubset( spanish ))
issubset: True issubset: False