title: Python 'in' keyword in expression vs. in for loop
body: <p>I understand what the <code>in</code> operator does in this code:</p>
  
  <pre><code>some_list = [1, 2, 3, 4, 5]
  print(2 in some_list)
  </code></pre>
  
  <p>I also do understand that <code>i</code> will take on each value of the list in this code:</p>
  
  <pre><code>for i in [1, 2, 3, 4, 5]:
      print(i)
  </code></pre>
  
  <p>I am curious if the <code>in</code> operator used in the <code>for</code> loop is the same as the <code>in</code> operator used in the first code.</p>