Get startedGet started for free

Object representation

Let's check your understanding of the two approaches for representing objects, the __str__() and __repr__() methods.

This exercise is part of the course

Introduction to Object-Oriented Programming in Python

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise