None, is and ==
== asks "are these equal?". is asks "are these the same object?". Two
lists with the same items are equal but are not the same object.
Use is only for singletons, values that exist exactly once. In practice that
means x is None and x is not None. PEP 8 asks for it, and interviewers
notice.
Don't use is to compare numbers or strings. Python reuses some small ints
and short strings, so is can seem to work in a quick test and then fail with
other values. That is a classic Debugging challenge bug.
A function that ends without return gives back None. So does a method that
changes something in place, like list.sort().
Run it and look at which is checks come out False.