lst=['1','22','333','4444']sorted(lst, key=lambda x: len(x))[-1]
l = ['1', '12', '123', '1234']reduce(lambda x,y: x if len(x) > len(y) else y, l)