Back
In Python there is no concept of null, instead, Python uses None. None tests that two variables refer to the same object.
See the example below:-
>>> foo is None True >>> foo = 'bar' >>> foo is None False
>>> foo is None
True
>>> foo = 'bar'
False
31k questions
32.8k answers
501 comments
693 users