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·
Generate videos with Grok Imagine.
English
0
564
7.6K
28.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
Steve Shultz
Steve Shultz@elijahliststeve·
When one industry spends hundreds of millions on politicians… Do you really think they’re working for you? Follow this account.
English
124
686
3.8K
2.4M
공유