+ 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

28th Dec 2023, 1:02 PM
G Ramya
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...
28th Dec 2023, 1:45 PM
Bob_Li
Bob_Li - avatar
+ 2
Can you please elaborate on your question.
28th Dec 2023, 1:20 PM
ć‚ă„šă„©äž‚ć„
ć‚ă„šă„©äž‚ć„ - avatar