Created
March 28, 2015 19:51
-
-
Save geraintwhite/31e69b5fe5f03e19ee67 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
import sys | |
def fibo(n): | |
return n if n < 2 else fibo(n-1) + fibo(n-2) | |
if __name__ == '__main__': | |
print(fibo(int(sys.argv[1]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment