Created
November 24, 2020 08:04
-
-
Save hamdyaea/10b00d40cb6414eddd76f61c25d85c53 to your computer and use it in GitHub Desktop.
This file contains 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
result = all(elem in list1 for elem in list2) | |
if result: | |
print("Yes, list1 contains all elements in list2") | |
else : | |
print("No, list1 does not contains all elements in list2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment