__str__: The string representation method. It is called when thestr()orprint()function are called on an object. (Similar totoString()in Java and other languages.) It is meant to be human-readable, aimed at the end-user.__repr__: The object representation method. It is called when therepr()function is called on an object. It is meant to be unambiguous, aimed at the developer. (Useful for debugging.)