DEV Community

Discussion on: Python 'is' vs '=='

Collapse
 
skyandsand profile image
Chris C

So basically

is

checks to see if the variable is the same space in memory, while

==

checks to see if the value is identical?

Collapse
 
wangonya profile image
Kelvin Wangonya

That's how I understand it, yes.