Created
April 17, 2017 02:05
-
-
Save javajini/6a3a3f89f0b3fe42da53740dbd40c272 to your computer and use it in GitHub Desktop.
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
def fib(n): | |
a,b = 0, 1 | |
for x in xrange(n): | |
a,b = b, a+b | |
return a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment