python list puzzle

Pubblicato il: 19 gennaio 2023
sul canale di: Daily Tutorials
128
7

Explanation:
In this puzzle, the variable "a" is assigned a list of numbers [1, 2, 3, 4, 5]. Then, the variable "b" is assigned the same list by reference, meaning that both variables point to the same memory location. When the 3rd element of the list is modified through the "b" variable, it also reflects the change in the "a" variable, as they are pointing to the same memory location.


In questa pagina del sito puoi guardare il video online python list puzzle della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Daily Tutorials 19 gennaio 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 128 volte e gli è piaciuto 7 spettatori. Buona visione!