summaryrefslogtreecommitdiff
path: root/progs/a272.py
blob: 1f59edd6a8747912fee78851971850eb759be400 (plain)
1
2
3
4
5
def fibonacci(n):
  if n == 1 or n == 2:
    return 1
  else:
    return (fibonacci(n - 1) + (fibonacci(n - 2)))