What is the output of print(callable(len)) in Python?
print(callable(len))
Correct answer
D. True
6 views
D. True
6 views
Functions are first-class objects, so callable() returns True.
Asked in: Python Interview Functions
https://docs.python.org/3/tutorial/controlflow.html#defining-functionsNot sure why the answer is D? Ask here and get an explanation.