Created
December 22, 2018 17:36
-
-
Save cemdrk/09f8e094572d12968c399aa43a0bc3ac to your computer and use it in GitHub Desktop.
Get n th fibonacci number
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 fibo(n): | |
if n == 0 or n == 1: | |
return n | |
return fibo(n-1) + fibo(n-2) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment