• + 0 comments

    Python 3

    def breakingRecords(scores):

    HS=scores[0]
    LS=scores[0]
    HC = 0
    LC = 0
    for score in scores:
    
        if score > HS:
            HS = score
            HC+=1
            print(HS)
        elif score < LS:
            LS = score
            LC+=1
    
    return [HC, LC]