What do the .__repr__() and .__str__() methods have in common?
.__repr__()
.__str__()
Select one:
Both are aimed at the program’s user
Both are used to modify an object’s state
Both are used to compare two objects
Both return string representations of an object
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?