Answers for "python any string in list"

3

if list item in string python

if any(ext in url_string for ext in extensionsToCheck):
    print(url_string)
Posted by: Guest on November-18-2019
1

python list contains string

str in strList

# example
if 'qwe' in strList:
	print('Yes!')
Posted by: Guest on August-19-2021

Code answers related to "python any string in list"

Python Answers by Framework

Browse Popular Code Answers by Language