Could someone answer below (Output is from IDLE or check on python shell - python 2.7). For 1),2) and 3),4) I am doing exactly same operation but getting different results.
1) >>> a=0
2) >>> a is 0
True
3) >>> a=0.0
4) >>> a is 0.0
False
5) >>> 0.0 is 0.0
True
why 4) is False?