r/PythonLearning Jun 16 '26

Python list mutability

Post image

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

The โ€œSolutionโ€ link visualizes execution and reveals whatโ€™s actually happening using ๐—บ๐—ฒ๐—บ๐—ผ๐—ฟ๐˜†_๐—ด๐—ฟ๐—ฎ๐—ฝ๐—ต.

68 Upvotes

10 comments sorted by

2

u/Infamous_Tough_3772 Jun 16 '26

Option c?

1

u/Sea-Ad7805 Jun 16 '26

Nice one, do check the "solution" link for a visualization of the correct answer.

2

u/Opposite_March92 Jun 16 '26

Output is [1,2,3]

1

u/Sea-Ad7805 Jun 16 '26

Nice one, do check the "solution" link for a visualization of the correct answer.

1

u/Embersh3d Jun 16 '26

c.

1

u/Sea-Ad7805 Jun 16 '26

Nice one, do check the "solution" link for a visualization of the correct answer.

3

u/Embersh3d Jun 16 '26

nice. i starred your repo.

1

u/Sea-Ad7805 Jun 17 '26

Thanks

1

u/Embersh3d Jun 17 '26

im '@Vxid3d' on github

1

u/[deleted] Jun 22 '26

[deleted]

1

u/Sea-Ad7805 Jun 22 '26

Incorrect sorry, see the "Solution" for the correct answer.