mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 21:20:13 +01:00
Implemented set.isdisjoint
This commit is contained in:
6
tests/basics/tests/set_isdisjoint.py
Normal file
6
tests/basics/tests/set_isdisjoint.py
Normal file
@@ -0,0 +1,6 @@
|
||||
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]))
|
||||
Reference in New Issue
Block a user