Intermediate
Python
Q81 / 101
What does functools.partial do?
Correct! Well done.
Incorrect.
The correct answer is B) Creates a new callable with some arguments pre-filled
B
Correct Answer
Creates a new callable with some arguments pre-filled
Explanation
partial(pow, 2) creates a callable equivalent to pow(2, x). Useful for adapting functions to expected signatures.
Progress
81/101