fork download
  1. # your code goes here
  2. def fib(n):
  3. if n == 0 or n == 1:
  4. return 1
  5. return fib(n + 2) + fib(n - 1)
  6. print(fib(n))
Success #stdin #stdout 0.02s 9052KB
stdin
1
stdout
Standard output is empty