micropython/tests/basics/set_isdisjoint.py

7 wiersze
154 B
Python
Czysty Zwykły widok Historia

2014-01-12 18:03:21 +00: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]))