• + 0 comments
    def breakingRecords(scores):
        
        max_score = min_score = scores[0]
        
        high = 0
        low = 0
        
        for i in scores:
            
            if i > max_score:
                
                high += 1
                max_score = i
                
            if i < min_score:
                
                low += 1
                min_score = i
                
        return [high, low]