FAQ: Learn Python: Inheritance and Polymorphism - Review

We cannot assign .append to anything. It is non-assignable since it is an action on an object, and therefore not a value.

1 Like

It is for times like these that Python gives us None (and JavaScript, undefined; Ruby, nil, &c.) just so something is in its place for this assignment. The act of storing nothing at a location is storing nothing at that location. It has a non-existent byte which equates to nothing, not even on the screen. It doesn’t even get a blank line. Or, likely even a newline.

This is definitely a concept to exploit. Don’t ask me to explain. Just think on it and play with it. It’s a special case, and those always warrant further study.