how to find longest sequence in python string code example Example: how to find the longest string python max(a_list, key=len)