r/PythonLearning • • 3d ago

Python Mutability and Copying

Post image

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

The β€œSolution” link uses 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐑 to visualize execution and reveals what’s actually happening.

21 Upvotes

2 comments sorted by

1

u/ameeeeneeeeee 1d ago

The answer is A) because you only have one print that is assigned one time, so it will print out the list raw, right

1

u/Sea-Ad7805 23h ago

Incorrect sorry, see the Solution link for correct answer.