The second-highest number of likes

Write code · Medium · §7.3 Building up

Find the second-largest value in the list of like counts, and store it in second. No two like counts are the same. Do not use max(), sorted(), or sort().

Starter code

likes = [45, 120, 80, 200, 150]

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.