r/PythonLearning • • 12d ago

Python Mutability: tuple vs list

Post image

An exercise to help build the right mental model for Python data.

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

39 Upvotes

7 comments sorted by

2

u/Potential_Fix_5007 12d ago

C

0

u/Sea-Ad7805 12d ago

Nice one, do check the Solution link for visualization of correct answer.

1

u/vlad-python 11d ago

D

1

u/Sea-Ad7805 11d ago

Incorrect sorry, see the Solution link for visualization of correct answer.

1

u/Zestyclose-Year4191 8d ago

D

1

u/Sea-Ad7805 8d ago

Incorrect sorry, see the Solution link for visualization of correct answer.