python list puzzle

Publié le: 19 January 2023
sur la chaîne: 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.


Sur cette page du site, vous pouvez voir la vidéo en ligne python list puzzle durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Daily Tutorials 19 January 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 129 fois et il a aimé 7 téléspectateurs. Bon visionnage!