CAC_20170705_ScoreSettler

def scoreSettler(scores, maxscore):
    return [x for x in sorted(scores, reverse=True) if x <= maxscore]

testscores = [874300, 879200, 1172100, 1141800, 933900, 1177200, 1190200, 1110100, 1158400, 985600, 1047200, 1049100, 1138600, 1170500, 1064500, 1190000, 1050200, 1090400, 1062800, 1061700, 1218000, 1068000, 1127700, 1144800, 1195100]
testmax = 1218000
print(scoreSettler(testscores, testmax))