?
What will be the output of the following Python function?
What will be the output of the following Python function?
all(3,0,4.2)
all(3,0,4.2)
Answer & Solution
Correct Answer:
Option
C
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.
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.
Join the Discussion
Login to post a comment or share your explanation.
Login