Skip to content

Difference between ‘==’ and ‘is’ operator in #pyhton #shorts #pythonforbeginners

Difference between ‘==’ and ‘is’ operator in #pyhton #shorts  #pythonforbeginners

#shorts #ScholarStream #python #pythonforbeginners #pythonprogramming
In this you will understand the clear idea of the difference between ‘==’ and ‘is’ operator in #python . Both these operators are used to check the equality between two variables but ‘==’ checks the value where ‘is’ checks the reference of the variables. In case of the small integers values between -3 to 256 #python doesn’t create any separate instance.

Cursuri interesante:

Leave a Reply

Your email address will not be published. Required fields are marked *