from functools import partial
def multiply(a, b):
return a * b
double = partial(multiply, b=2)
result = double(10)
print(result)
>>> from functools import partial
>>> basetwo = partial(int, base=2)
>>> basetwo.__doc__ = 'Convert base 2 string to an int.'
>>> basetwo('10010')
18