Created
June 28, 2011 22:31
-
-
Save b1naryth1ef/1052414 to your computer and use it in GitHub Desktop.
blogpost75_1
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 fib(n): | |
if n==0: | |
return 0 | |
elif n==1: | |
return 1 | |
else: | |
return fib(n-2)+fib(n-1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment