The second score when there are ties

Write code · Challenge · §7.3 Building up

Find the second-highest score in the list, counting each different score only once, and store it in second. Even if two people scored 95, the second-highest score is not 95. Do not use max(), sorted(), sort(), or set().

Starter code

scores = [88, 95, 70, 95, 82]

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.