There’s no null in Python; instead there’s None . As stated already, the most accurate way to test that something has been given None as a value is to use the is identity operator , which tests that two variables refer to the same object.
There’s no null in Python; instead there’s None . As stated already, the most accurate way to test that something has been given None as a value is to use the is identity operator , which tests that two variables refer to the same object.