

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of the following code? >>> class demo(): def __repr__(self): return '__repr__ built-in function called' def __str__(self): return '__str__ built-in function called' >>> s=demo() >>> s |
A. | Error |
B. | Nothing is printed |
C. | __str__ called |
D. | __repr__ called |
Answer» E. | |