A

Admin • 802.91K Points
Coach

Q. Which method is used to represent the object in an unambiguous way?

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

Explanation by: Admin
`__repr__()` is intended to return a string that would recreate the object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.