Search⌘ K
AI Features

Everything Is an Object

Explore how Python treats all entities like integers, strings, lists, and classes as objects. Understand references, mutability, and how to identify object types and memory addresses with type() and id(). This lesson helps you grasp fundamental object concepts necessary for Python programming.

We'll cover the following...

In Python, every entity is an object. This includes int, float, bool, complex, string, list, tuple, set, dictionary, function, class, method, and module.

When we say x = 20, a nameless object of type int ...