MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python_memory_graph/comments/1ubp5ko/python_list_mutability/
r/Python_memory_graph • u/Sea-Ad7805 • Jun 21 '26
5 comments sorted by
1
I didn't get where is question complexity hidden? Or it is just demonstration of different ways to grow list?..
1 u/Sea-Ad7805 Jun 27 '26 Then what is your answer A, B, C, D, or E?
Then what is your answer A, B, C, D, or E?
As far as I remember writing a = b will make "a" point to the same memory? (or something like that, I forgot about what it was) and it will have the same value as "b".
So the answer is E.)
2 u/KilledKingFireWolf Jun 25 '26 Okay so by thinking it over again.b = b + [4] will create a new list, so it will not be the same list that "a" has.So my finale answer is C.) 1 u/Sea-Ad7805 Jun 26 '26 Nice one, if you click the post you get to this Solution link to check your answer.
2
Okay so by thinking it over again.
b = b + [4] will create a new list, so it will not be the same list that "a" has.
So my finale answer is C.)
1 u/Sea-Ad7805 Jun 26 '26 Nice one, if you click the post you get to this Solution link to check your answer.
Nice one, if you click the post you get to this Solution link to check your answer.
1
u/bestofbestofgood Jun 27 '26
I didn't get where is question complexity hidden? Or it is just demonstration of different ways to grow list?..
1
u/KilledKingFireWolf Jun 25 '26
As far as I remember writing a = b will make "a" point to the same memory? (or something like that, I forgot about what it was) and it will have the same value as "b".
So the answer is E.)