def longest_str(textes):
    """Returns longest text in a list"""
    if not textes:
        return -1
    else:
        maxlen = -1
        for text in textes:
            l = len(text)
            if l > maxlen:
                maxlen = l
                toReturn = text
        return toReturn
