def maxlen(stringlist):
    """returns the length of the longest string in the string list"""
    maxlen = 0
    for x in stringlist:
        if len(x) > maxlen:
            maxlen = len(x)
    return maxlen