In [1]:
s1 = "foo bar baz"

In [3]:
"foo" in s1


Out[3]:
True

In [4]:
["foo","bar"] in s1


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-7ce1a01a731c> in <module>()
----> 1 ["foo","bar"] in s1

TypeError: 'in <string>' requires string as left operand, not list

In [ ]: