search string array python

Solutions on MaxInterview for search string array python by the best coders in the world

showing results for - "search string array python"
Olivia
07 Jan 2020
1some_list = ['abc-123', 'def-456', 'ghi-789', 'abc-456']
2if any("abc" in s for s in some_list):
3    # whatever
4
Leia
13 Jan 2018
1my_list = ['abc-123', 'def-456', 'ghi-789', 'abc-456']
2