def avegsenlen(data):
    """
    Args:
        list of strings
    Out:
        average string length (#words)
    """
    data = [x[0].split() for x in data]
    return sum([len(x) for x in data]) / float(len(data))