Tag: magic-methods

58 votes
25 answers
2.9K views
What is the difference between __str__ and __repr__?

What is the difference between __str__ and __repr__ in Python?

avatar
Nereida
0 1 0 9
asked 07 September, 2021