Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created June 15, 2020 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/9872b8f19722f1f51238526d60bc53e2 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/9872b8f19722f1f51238526d60bc53e2 to your computer and use it in GitHub Desktop.
s1={1,2,3,4,5}
s2={4,5,6,7,8}
print (s1.isdisjoint(s2)) #Output: False
s3={1,2,3}
s4={4,5,6}
print (s3.isdisjoint(s4)) #Output: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment