mercredi 28 septembre 2016

Searching for two or more words in string - Python Troubleshooting Program

I know the code for searching words in a string that match to another string.

if any(word in problem for word in keyword_virus):
    #Some code her e.g. pc_virus()

But is there any code that would allow me to check if two or more words matched/or even any modifications to this code?

Thank you :)

Aucun commentaire:

Enregistrer un commentaire