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
381
4.3K
20.4M
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
Supermicro
Supermicro@Supermicro·
Accelerate deployment with Supermicro Global Services. From data center design and solution validation to on-site deployment and ongoing support, integrated services help reduce time-to-online, improve installation quality, and support mission-critical uptime.
English
1
6
80
692.3K
แชร์