i tried the below code but I am not getting the reason why it is happening?
x=2
y=2
print(id(x),id(y))
in above I have got like below 140732101468592 140732101468592
but if I tried with the float type data like below
x=2.0
y=2.0
print(id(x),id(y))
I have got the output like below 2226214428496 2226204728400
why am I getting same id for integer variable with same value but not for float variable with same values?