File: fib.py

package info (click to toggle)
python-rq 2.3.3-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,428 kB
  • sloc: python: 12,349; makefile: 22; sh: 19
file content (5 lines) | stat: -rw-r--r-- 108 bytes parent folder | download | duplicates (2)
1
2
3
4
5
def slow_fib(n):
    if n <= 1:
        return 1
    else:
        return slow_fib(n - 1) + slow_fib(n - 2)