You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hear, In both examples we found different memory address allocation from jupyter notebook but in other platform likes vs-code or other online compilers gives same memory address.
The text was updated successfully, but these errors were encountered:
Hi @neerajpatel2505, thanks for submitting this issue. Unfortunately, I don't think this is a Notebook issue. In the latest version of Python 3.13.3 (run from the terminal), I also see different memory address allocation. So I think you are comparing CPython functionality between different versions of Python.
### In jupyter notbook
1. For float data:
x = 1.5
y = 1.5
print(id(x),id(y))
2. For complex data:
x = 1+5j
y = 1+5j
print(id(x),id(y))
Hear, In both examples we found different memory address allocation from jupyter notebook but in other platform likes vs-code or other online compilers gives same memory address.
The text was updated successfully, but these errors were encountered: