πŸ“Š Python
Q. Which of the following is true about `__repr__()`?
  • (A) It is used for string conversion for developers
  • (B) It is used to compare two objects
  • (C) It is the destructor method
  • (D) It is the constructor method
πŸ’¬ Discuss
βœ… Correct Answer: (A) It is used for string conversion for developers

Explanation: `__repr__()` is meant to give an official string representation useful for debugging.

Explanation by: Mr. Dubey
`__repr__()` is meant to give an official string representation useful for debugging.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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