0

Difference of Python 2 and Python3 about comparing

a = "SoloLearn" b = "{}".format("SoloLearn") print (a , b) #prints SoloeLearn SoloLearn print (a is b , a == b) #prints True True however in python2 it prints False True I am willing to see your comments below with the reasons if possible https://code.sololearn.com/cD855gQgPb5c

13th May 2019, 7:49 AM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
0 Resposta