πŸ“Š Python
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__()
πŸ’¬ Discuss
βœ… Correct Answer: (C) __str__()

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
186
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Neha Sharma
Publisher
πŸ“ˆ
97%
Success Rate