• + 0 comments

    def breakingRecords(scores): # import numpy as np high, low, h_count, l_count = scores[0], scores[0], 0,0

    for i in scores:
        if i < low:
            l_count+=1
            low = i
        elif i > high:
            h_count+=1
            high= i
        else:
            continue
    
    arr = []
    arr.append(h_count)
    arr.append(l_count)
    
    return arr