circuitpython/tests/basics/set_isdisjoint.py

7 lines
154 B
Python
Raw Permalink Normal View History

2014-01-12 13:03:21 -05:00
s = {1, 2, 3, 4}
print(s.isdisjoint({1}))
print(s.isdisjoint([2]))
print(s.isdisjoint([]))
print(s.isdisjoint({7,8,9,10}))
print(s.isdisjoint([7,8,9,1]))