Answers for "search string array python"

0

search string array python

some_list = ['abc-123', 'def-456', 'ghi-789', 'abc-456']
if any("abc" in s for s in some_list):
    # whatever
Posted by: Guest on April-09-2021
0

search string array python

my_list = ['abc-123', 'def-456', 'ghi-789', 'abc-456']
Posted by: Guest on April-09-2021

Code answers related to "search string array python"

Python Answers by Framework

Browse Popular Code Answers by Language