circuitpython/tests/basics/set_isfooset.py

7 lines
186 B
Python
Raw Normal View History

2014-01-12 13:23:36 -05:00
sets = [set(), {1}, {1, 2, 3}, {3, 4, 5}, {5, 6, 7}]
args = sets + [[1], [1, 2], [1, 2 ,3]]
2014-01-12 13:23:36 -05:00
for i in sets:
for j in args:
2014-01-12 13:23:36 -05:00
print(i.issubset(j))
print(i.issuperset(j))