title: Computational cost of any() in Python
body: <p>What is the computational cost of using any() or not any()?</p>
  <p>The any() built-in checks if any element is True in an iterable. I would suppose it needs to check all the elements it is applied to, so I would assume the cost to be O(n).</p>