πŸ“Š Python
Q. Which method is used to represent the object in an unambiguous way?
  • (A) __str__()
  • (B) __unicode__()
  • (C) __repr__()
  • (D) __print__()
πŸ’¬ Discuss
βœ… Correct Answer: (C) __repr__()

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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