hasPerfectScore = False for i in range(nScores): if score[i] == 100: hasPerfectScore = True break