What do the .__repr__() and .__str__() methods have in common?
.__repr__()
.__str__()
Select one:
Both return string representations of an object
Both are used to compare two objects
Both are aimed at the program’s user
Both are used to modify an object’s state
Hint
Think about what kind of output these methods produce.
Sorry! There has been an error processing your answer. Please try again.
Got feedback on this question?