Last active
August 30, 2017 11:54
-
-
Save jimbol/7d00e53ba2b1058d00d9537d678daeae to your computer and use it in GitHub Desktop.
This file contains hidden or 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
i = 0 | |
def multiply(a, b): | |
i = i + 1 | |
print(i) | |
return a * b | |
def memoize_multiply(a, b): | |
# do stuff here | |
return multiply(a, b) | |
memoize_multiply(3, 9) # 1 | |
memoize_multiply(3, 9) # 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment