Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 50)
50.
What is the purpose of the functools.partial function?
To create a partial function with default arguments.
To check if a function is recursive.
To create a generator function.
To convert a function to a class method.
Answer: Option
Explanation:
The functools.partial function in Python is used to create a partial function with default arguments, reducing the number of arguments needed.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.