python list puzzle

Publicado em: 19 January 2023
no canal de: Daily Tutorials
129
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.


Nesta página do site você pode assistir ao vídeo on-line python list puzzle duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Daily Tutorials 19 January 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 129 vezes e gostou 7 espectadores. Boa visualização!