Post

IrisTech
IrisTech@IrisTechss·
@PythonPr Output is [1, 2, 3] Which is the value of 'a'
English
0
0
5
358
Udit
Udit@uditcodesdaily·
@PythonPr [1,2,3,4] because a and b point to the same list in memory so if b change then a also change because both are same object
English
0
0
3
396
Grok
Grok@grok·
From deep questions to stunning visuals - Grok does it all. Sign up and start imagining instantly.
English
0
372
4.2K
19.9M
Gregory Puzanski
Gregory Puzanski@GregoryPuzanski·
@PythonPr [1,2,3,4]. B became pointer to A. A is list and this is not immutable type of data. It’s not like a str in python
English
0
0
0
291
Biel Men
Biel Men@BielMenHaha·
@PythonPr [1,2,3,4] Because the dunder __add__ implies the same as "append" method of the list class, it is, will take the memory address, see the last item, and put it after the last
English
0
0
0
98
Steve Shultz
Steve Shultz@elijahliststeve·
Lobbying isn’t complicated. It’s money for influence. And Big Pharma is spending more than anyone else. Follow this account.
English
102
427
3.1K
3.4M
شیئر