Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python partial examples

from functools import partial

def multiply(a, b):
    return a * b

double = partial(multiply, b=2)

result = double(10)
print(result)
Source by www.pythontutorial.net #
 
PREVIOUS NEXT
Tagged: #python #partial #examples
ADD COMMENT
Topic
Name
9+5 =