Python Quiz: What is the output ?
IrisTech@IrisTechss·5d@PythonPr Output is [1, 2, 3] Which is the value of 'a'Terjemahkan English005358
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 pythonTerjemahkan English003291
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 objectTerjemahkan English003396
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 lastTerjemahkan English00398
tokendra jain@jain_tokendra·4d@PythonPr I learned something new from this post.Terjemahkan English00047