Implemented set.isdisjoint

This commit is contained in:
John R. Lenton
2014-01-12 18:03:21 +00:00
parent f1ae6b48fb
commit 4a08067c0c
2 changed files with 22 additions and 0 deletions

View 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]))