You are viewing a single comment's thread. Return to all 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]
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 →