The __repr__ is to be unambiguous and __str__ is to be readable.
Here is an example for the same:
>>> import datetime
>>> today = datetime.datetime.now()
>>> str(today)
>>> repr(today)
You can use the following video tutorials to clear all your doubts:-
Learn in detail about Python by enrolling in Intellipaat Python Course online and upskill.