OOP
1 / 10
EasyMultiple choice

__repr__ vs __str__

A class defines only __repr__ and not __str__. What happens when you call print() on an instance?

← → arrow keys to navigate

Sign in to save your progress.

__repr__ vs __str__ - Python OOP Quiz | Unnested