Which function is called when the following Python program is executed?
f = foo() format(f)
a) str() b) format() c) __str__() d) __format__()
Answer: c Explanation: Both str(f) and format(f) call f.__str__().