when I give two float numbers, it shows false, why? it should be true. why it shows false?

when I give two float numbers, it shows false, why? it should be true. why it shows false?

 
    
    It shows false because both variables are not sharing the same memory location. For more, check here.
How to check this?
a = 8.5
b = 8.5
print(id(a), id(b)) # 140035857364400 140035857418800
print(a is b) # False
print(a == b) # True
