You are viewing a single comment's thread. Return to all comments →
def breakingRecords(scores): max_score = min_score = None minrec_maxrec = [0, 0]
for score in scores: if max_score is None: max_score = score if min_score is None: min_score = score if max_score < score: max_score = score minrec_maxrec[0] += 1 if min_score > score: min_score = score minrec_maxrec[1] += 1 return minrec_maxrec fptr.write(' '.join(map(str, result))) fptr.write('\n'
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 →
def breakingRecords(scores): max_score = min_score = None minrec_maxrec = [0, 0]