This is a good place for a comprehension.
>>> all([x in some_string for x in some_list]) True
how to check if string contains ALL words from the list?
|
|
Messages In This Thread |
how to check if string contains ALL words from the list? - by zarize - Jul-22-2020, 04:58 PM
RE: how to check if string contains ALL words from the list? - by Yoriz - Jul-22-2020, 05:10 PM
RE: how to check if string contains ALL words from the list? - by zarize - Jul-22-2020, 05:11 PM
RE: how to check if string contains ALL words from the list? - by Yoriz - Jul-22-2020, 05:15 PM
RE: how to check if string contains ALL words from the list? - by bowlofred - Jul-22-2020, 05:21 PM
RE: how to check if string contains ALL words from the list? - by Yoriz - Jul-22-2020, 05:25 PM
RE: how to check if string contains ALL words from the list? - by zarize - Jul-22-2020, 07:04 PM
|