Everything Is An Object

In case you missed it, I just said that Python functions have attributes, and that those attributes are available at runtime. A function, like everything else in Python, is an object.

Run the interactive Python shell and follow along:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy