Examveda

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

A. str()

B. format()

C. __str__()

D. __format__()

Answer: Option C


This Question Belongs to Python Program >> Introduction To Python

Join The Discussion

Related Questions on Introduction to Python