“Se o item da lista em string python” Respostas de código

Verifique se alguma coisa em uma lista está em um string python

y = any(x in String for x in List)
itsanantk

Se o item da lista em string python

if any(ext in url_string for ext in extensionsToCheck):
    print(url_string)
Cook's Tree Boa

Lista Python contém string

str in strList

# example
if 'qwe' in strList:
	print('Yes!')
ARtemachka

Respostas semelhantes a “Se o item da lista em string python”

Perguntas semelhantes a “Se o item da lista em string python”

Mais respostas relacionadas para “Se o item da lista em string python” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código