What is the difference between __str__ and __repr__?
Asked 07 September, 2021
Viewed 2.9K times
  • 58
Votes

What is the difference between __str__ and __repr__ in Python?

25 Answer