micropython/tests/basics/set_isfooset.py

6 lines
147 B
Python
Raw Permalink Normal View History

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