• + 0 comments
    def breakingRecords(scores):
        best=scores[0]
        worst=scores[0]
        best_rec=0
        worst_rec=0
        for i in scores:
            if i>best:
                best=i
                best_rec+=1
            if i<worst:
                worst=i
                worst_rec+=1
        return [best_rec, worst_rec]