This is an archived version of the course. Please find the latest version of the course on the main webpage.

Chapter 2: Object Identity

Objects revisited

face Josiah Wang

Back in Lesson 2, we introduced the general concept of objects in Python.

Remember that every entity is an object in Python.

For example, a Python str is an object. A Python list is also an object (which can be made up of other objects).

Each object is allocated some space in memory, and each object has a type and some value.

Example objects in our guessing game