Programming Languages Python Mcq
Sep 30, 2025

What is the difference between __str__ and __repr__?

Choose the correct answer:
A) __str__ for user-friendly output, __repr__ for developer debugging
B) No difference
C) __str__ is faster
D) __repr__ is deprecated
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback