I have a list of sentences and need to print the quotes with the 'theWord' include inside. it returns True but I need to see the sentences.
myList = ["hello world","good boy","good night"]
theWord = "good"
theQuote = filter (==True) (map (isInfixOf theWord) myList)
output:
*Main> theQuote
[True,True]