Answers for "python find multiple matches in string"

0

python find multiple matches in string

a_string = "A string is more than its parts!"
matches = ["more", "wholesome", "milk"]

if any(x in a_string for x in matches):
Posted by: Guest on November-20-2020

Code answers related to "python find multiple matches in string"

Python Answers by Framework

Browse Popular Code Answers by Language