πŸ“Š Python
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

πŸ‘οΈ
56
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate