What does functools.partial do in Python?
Correct answer
B. Creates a new function with some arguments fixed
5 views
B. Creates a new function with some arguments fixed
5 views
partial pre-fills arguments of an existing function.
Asked in: Python Interview Advanced Python
https://docs.python.org/3/library/index.htmlNot sure why the answer is B? Ask here and get an explanation.