I have a list of variable length and am trying to find (most likely) a list comprehension to allow me to see if the list item currently being evaluated is the longest string contained in the list. And am using Pythong 2.6.1
ie.
mylist = ['123','123456','1234']
for each in mylist:
if condition1:
do_something()
elif ___________________: #else if each is the longest string contained in mylist:
do_something_else()
I'm brand new to python and I'm sure I'm just having a brain fart. Surely there's a simple list comprehension that's short and elegant that I'm overlooking?
Thanks!