πŸ“Š Problem Solving and Python Programming
Q. Which of the following functions will not result in an error when no arguments are passed to it?
  • (A) min()
  • (B) divmod()
  • (C) all()
  • (D) float()
πŸ’¬ Discuss
βœ… Correct Answer: (D) float()

Explanation: the built-in functions min(), max(), divmod(), ord(), any(), all() etc throw an error when no arguments are passed to them. however there are some built-in functions like float(), complex() etc which do not throw an error when no arguments are passed to them. the output of float() is 0.0.


Explanation by: Mr. Dubey
the built-in functions min(), max(), divmod(), ord(), any(), all() etc throw an error when no arguments are passed to them. however there are some built-in functions like float(), complex() etc which do not throw an error when no arguments are passed to them. the output of float() is 0.0.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
743
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate