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

  • (A) __str__()
  • (B) __unicode__()
  • (C) __repr__()
  • (D) __eq__()
πŸ’¬ Discuss
βœ… Correct Answer: (C) __repr__()
Explanation: `__repr__()` should return an unambiguous string representation of an object.
Explanation by: Mr. Dubey
`__repr__()` should return an unambiguous string representation of an object.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
79
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
83%
Success Rate