Python Quiz: What is the output ?
Udit@uditcodesdaily·5d@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번역 English003396
Gregory Puzanski@GregoryPuzanski·5d@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번역 English000291
Biel Men@BielMenHaha·5d@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번역 English00098
Steve Shultz@elijahliststeve·3dWhen one industry spends hundreds of millions on politicians… Do you really think they’re working for you? Follow this account.번역 English1246863.8K2.4M585