Vidyalelo
Python · Q50

Python Built

Programming · Python · question 50

Q50

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()
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
Explanation: The float() function in Python can be called without any arguments, and it will return a floating-point number with a value of 0.0. It does not result in an error when called without arguments.