Partials4:53 with Kenneth Love
Sometimes, an entire function, even an anonymous one, is just too much. Partial functions let us partially apply a function. Partials aren't as common as the other things we've covered, but they're still a handy tool.
functools.partial lets you preset some arguments to a function. You can then call the new function with the remaining arguments as needed. This often ends up being really handy when used with
You need to sign up for Treehouse in order to download course files.Sign up