Vidyalelo
Python · Q62

Python Introduction and basic

Programming · Python · question 62

Q62

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

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

Answer: Option C

Solution

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