Search a list of strings for any sub-string from another list
<p>Given these 3 lists of data and a list of keywords:</p>

<pre><code>good_data1 = ['hello, world', 'hey, world']
good_data2 = ['hey, man', 'whats up']
bad_data = ['hi, earth', 'sup, planet']
keywords = ['world', 'he']
</code></pre>

<p>I'm trying to write a simple function to check if any of the keywords exist as a substring of any word in the data lists. It should return True for the <code>good_data</code> lists and False for <code>bad_data</code>.</p>

<p>I know how to do this in what seems to be an inefficient way:</p>

<pre><code>def checkData(data):
  for s in data:
    for k in keywords:
      if k in s:
        return True
  return False
</code></pre>
