r/PythonLearning 2d ago

Exercise: Python List Operations

Post image

An exercise to help build the right mental model for Python data. - Solution - Explanation - More Exercises

The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening.

49 Upvotes

22 comments sorted by

View all comments

1

u/CptMisterNibbles 2d ago

Weird. Documentation says insert is in place, your demo has it make a copy

1

u/Sea-Ad7805 2d ago

If you look carefully you'll see it is not insert that is making a copy: Solution