Explore objects and classes in Python.

Introduction to objects

We are going to look at one more Python idea called objects. Objects are similar to reusable functions because we define them once and use them many times. But objects can do a lot more than simple functions can.

The easiest way to understand objects is to see them in action rather than talk about them as an abstract concept. Let’s have a look at the following code:

Get hands-on with 1200+ tech skills courses.