Sorting that gives None
Code review · Basic · §3.4 Sorting and summarizing
This code tries to print a new list sorted from largest to smallest while leaving likes as it is. It runs without errors, but it prints None.
Code to fix
likes = [120, 80, 200]
ranked = likes.sort()
print(ranked)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.