Created
November 27, 2017 03:11
-
-
Save manhha00/685bc80ed6caac95c3059ae5ce40d955 to your computer and use it in GitHub Desktop.
maya - python - functools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Following is the exercise, function provided: | |
from functools import partial | |
def func(u,v,w,x): | |
return u + v + w + x | |
#Enter your code here to create and print with your partial function | |
dbl = partial(func, 4 , 4 , 4) | |
print (dbl(4)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment