def normList(L, normalizeTo=1):
    '''normalize values of a list to make its max = normalizeTo'''

    vMax = max(L)
    return [ x/(vMax*1.0)*normalizeTo for x in L]
normalize values of a list to make its max = normalizeTo
recipes/Python/278258_List_Tools/recipe-278258.py