Vidyalelo
Python · Q16

Classes and Objects in Python

Programming · Python · question 16

Q16

Which function is called when the following Python code is executed? f = foo() format(f)

A.
format()
B.
__format__()
C.
str()
D.
__str__()
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board