Live quiz

python-programing - Part 67

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following Python code? >>> class demo(): def __repr__(self): return '__repr__ built-in function called' def __str__(self): return '__str__ built-in function called' >>> s=demo() >>> print(s)

  • A
  • B
  • C
  • D