[Python] Memory allocation of two same value variables [closed]

Discussão em 'Python' iniciado por Stack, Abril 17, 2025.

  1. Stack

    Stack Membro Participativo

    If I take 2 variables and assign then same value then their memory location is same as I have tried it with print(x is y) -> True. Then if I update the value of one variable, why doesn't the other variable value change as if they were at the same memory location?

    Continue reading...

Compartilhe esta Página