A

Admin • 833K Points
Coach

Q. Which method returns a string that is meant to be unambiguous?

  • (A) __str__()
  • (B) __unicode__()
  • (C) __repr__()
  • (D) __eq__()
  • Correct Answer - Option(C)
  • Views: 23
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`__repr__()` should return an unambiguous string representation of an object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.