I'm trying to write a function that takes a string and checks to see if there are multiple matches from a separate list in it.
Let's say the list is:
fruits = ['Apple', 'Orange', 'Pineapple', 'Durian', 'Lychee']
And the input string is:
"Apple, Orange"
I'd like it to return a True if two or more items from the list are in the input string.
So:
"Durian, Apple, Orange"
would return True. But:
"Apple"
would return False.
I'm just not quite sure how to iterate over the input string. Would appreciate any help!