A

Admin • 832.27K Points
Coach

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

Code:
f = foo()
format(f)
  • (A) str()
  • (B) format()
  • (C) __str__()
  • (D) __format__()
  • Correct Answer - Option(C)
  • Views: 27
  • Filed under category Python
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.