You are viewing a single comment's thread. Return to all comments →
We can get rid of last two lines by running for loop on sorted list
for name, score in sorted(l): if score == second_lowest: print(name)
Seems like cookies are disabled on this browser, please enable them to open this website
Nested Lists
You are viewing a single comment's thread. Return to all comments →
We can get rid of last two lines by running for loop on sorted list
for name, score in sorted(l): if score == second_lowest: print(name)