def _GetPercentileList(items, percentilelist):
 if (not items):
  return None
 sortedlist = sorted(items)
 return [_GetPercentile(sortedlist, p) for p in percentilelist]

def _GetPercentileList ( items , percentilelist ) : if ( not items ) : return None sortedlist = sorted ( items ) return [ _GetPercentile ( sortedlist , p ) for p in percentilelist ]
given a list .