SHARE
TWEET

Untitled

a guest Dec 6th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def Fib(n):
  2.     if n == 0 or n == 1:
  3.         return n
  4.     return Fib(n - 1) + Fib(n - 2)
  5.  
  6. n = int(input())
  7. print(Fib(n))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top