Python code challenges - lists

Going forward please format your code in posts.

It’s returning 2 b/c that’s what i is equal to in your list after range executes three times.

The instructions say to return a modified list, not just an element from the list at a particular index.
You can use a for loop with range and len, but you need to change the parameter and the return values.

A good tool to visualize what your code is doing is Python Tutor.
(You have to paste your formatted code into the app though).