title: Python's most efficient way to choose longest string in list?
body: <p>I have a list of variable length and am trying to find a way to test if the list item currently being evaluated is the longest string contained in the list. And I am using Python 2.6.1</p>
  
  <p>For example:</p>
  
  <pre><code>mylist = ['abc','abcdef','abcd']
  
  for each in mylist:
      if condition1:
          do_something()
      elif ___________________: #else if each is the longest string contained in mylist:
          do_something_else()
  </code></pre>
  
  <p>Surely there's a simple list comprehension that's short and elegant that I'm overlooking?</p>