Created
October 9, 2017 19:45
-
-
Save zGrav/fb23b321e22142d4245bdc60b5ba429c 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
def f(n): | |
f.count += 1 | |
if n == 1: | |
return 1 | |
else: | |
return n * f(n-1) | |
f.count = 0; | |
print f(5) | |
print f.count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment