title: Python, check element X from substrings
body: <p>I am trying to check if the element from position X in each sublist is same. like:</p>
  
  <p>we have List of lists:</p>
  
  <pre><code>s= [[0,0,0],[0,0,1],[0,0,1]]
  </code></pre>
  
  <p>And i want to check that the 3rd element is same in all sublists. Like in this example should go true only for second and third sublists</p>
  
  <pre><code>for x in s:
      if x[2] == 1:
          print "T"
  </code></pre>
  
  <p>Tried to print them but this just prints them every single time when it goes in for. i want just to check if third element from list is same in subslist</p>
  
  <p>Thank you!</p>