r/PythonLearning • u/Sea-Ad7805 • Jul 14 '26
Python Data Model Exercise
An exercise to help build the right mental model for Python data.
The โSolutionโ link visualizes execution and reveals whatโs actually happening using ๐บ๐ฒ๐บ๐ผ๐ฟ๐_๐ด๐ฟ๐ฎ๐ฝ๐ต.
67
Upvotes
2
u/Embarrassed-Crow9283 Jul 14 '26
C. The first two lists in b were still the same lists as the lists in a, but the third list was added and the third element would only be in b and not a. You appended the list in position 0 with 11 and in position 1 with 22. This gives result C when printing out a.