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
Grok@grok·7 NisFrom deep questions to stunning visuals - Grok does it all. Sign up and start imagining instantly.翻訳 English03724.2K19.9M664
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·3dLobbying isn’t complicated. It’s money for influence. And Big Pharma is spending more than anyone else. Follow this account.翻訳 English1024273.1K3.4M369