Q. What happens if __str__() is not defined in a class?
β
Correct Answer: (A)
__repr__() is called as fallback
Explanation: Python will fallback to __repr__() if __str__() is not defined.