We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
defbreakingRecords(scores):# Write your code herehighest_score=scores[0]lowest_score=scores[0]records=[0]*2forscoreinscores:ifscore>highest_score:highest_score=scorerecords[0]+=1ifscore<lowest_score:lowest_score=scorerecords[1]+=1returnrecords
Cookie support is required to access HackerRank
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