+ 1
How does python know same value is given to different variables????
I mean how does 2 variables point to same memory adress if they same value
2 Answers
+ 5
maybe you are referring to this?
https://stackoverflow.com/questions/306313/is-operator-behaves-unexpectedly-with-integers
it's a CPython thing, trying to conserve memory...
+ 2
Can you please elaborate on your question.