Created
February 3, 2024 09:07
-
-
Save OlegKorn/0d0b79fd7867c77c1c66bfc29675fbb4 to your computer and use it in GitHub Desktop.
check if not any element of list in string
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
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