Examveda

What will be the output of the following Python function?
all(3,0,4.2)

A. True

B. False

C. Error

D. 0

Answer: Option C

Solution (By Examveda Team)

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.

This Question Belongs to Python Program >> Python Built In Functions

Join The Discussion

Related Questions on Python Built In Functions