An insert with the position and the value swapped
Code review · Basic · §3.3 Changing lists
This code tries to put 45, the number of likes on a post you just uploaded, at the front of the list. It runs without errors, but 45 is not at the front. Fix just one line. Grading runs the code again with different lists.
Code to fix
likes = [120, 80, 200]
likes.insert(45, 0)
print(likes)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.