• + 1 comment

    Python

    def breakingRecords(scores):
        # Write your code here
        highest_score = scores[0]
        lowest_score = scores[0]
        records = [0]*2
        for score in scores:
            if score > highest_score:
                highest_score = score
                records[0] += 1
                
            if score < lowest_score: 
                lowest_score = score
                records[1] +=1
        return records