Skip to content

Instantly share code, notes, and snippets.

@OlegKorn
Created February 3, 2024 09:07
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 OlegKorn/0d0b79fd7867c77c1c66bfc29675fbb4 to your computer and use it in GitHub Desktop.
Save OlegKorn/0d0b79fd7867c77c1c66bfc29675fbb4 to your computer and use it in GitHub Desktop.
check if not any element of list in string
str = 'string'
list = [.....]
if not any(list_elem in str for list_elem in list):
do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment