Q19
What will be the output of the following Python function? all(3,0,4.2)
A.
True
B.
False
C.
Error
AnswerD.
0
Answer: Option C
Solution
Answer: Option C
Solution:
The correct answer is Option C: Error.The all() function in Python expects a single iterable as its argument, but in the provided code, it is given multiple arguments (3, 0, and 4.2) instead of a single iterable. This will raise a TypeError.