title: Comparing the value of a Tuples in a List in Python
body: <p>Say I have a list in python as</p>
  
  <p>some_list = <code>[(1,'a'),(2,'b')]</code></p>
  
  <p>Is there a way I can shorten the following code:</p>
  
  <pre><code>def someMethod(some_list, some_string):
      for value in some_list:
          if 'some_string' is value[1]:
              print 'do_something'
  </code></pre>