Last active
April 30, 2021 05:11
-
-
Save naveen521kk/c5f76ba9a9257ca628af5d89944d543a to your computer and use it in GitHub Desktop.
Check for common elements in a list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def no_common_element_list(a,b): | |
return set(a) - set(b) == set(a) and set(b) - set(a) == set(b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment