You are viewing a single comment's thread. Return to all comments →
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]
Seems like cookies are disabled on this browser, please enable them to open this website
Breaking the Records
You are viewing a single comment's thread. Return to all comments →
Python 3
def breakingRecords(scores):