title: What does the builtin function any() do?
body: <p>I did some google searching on how to check if a string has any elements of a list in it and I found this bit of code that works:</p>
  
  <p><code>if any(i in string for i in list):</code></p>
  
  <p>I know this works, but I don't really know why.  Could you share some insight?</p>