Skip to content

Instantly share code, notes, and snippets.

@hamdyaea
Created November 24, 2020 08:04
Show Gist options
  • Save hamdyaea/10b00d40cb6414eddd76f61c25d85c53 to your computer and use it in GitHub Desktop.
Save hamdyaea/10b00d40cb6414eddd76f61c25d85c53 to your computer and use it in GitHub Desktop.
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