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

Questions & AnswersCategory: Programming LanguageWhich function is called when the following Python program is executed? f = foo() format(f)
Geek Boy Staff asked 2 years ago

Which function is called when the following Python program is executed?

f = foo()
format(f)

a. str(.
b. format(.
c. __str__(.
d. __format__(.