Skip to content

Instantly share code, notes, and snippets.

@amir-abdi
Created December 12, 2022 09:07
Show Gist options
  • Save amir-abdi/f73748991daa6356039d8271fa8b8a69 to your computer and use it in GitHub Desktop.
Save amir-abdi/f73748991daa6356039d8271fa8b8a69 to your computer and use it in GitHub Desktop.
def recur_fibo(value):
if value <= 1:
return value
else:
return(recur_fibo(value-1) + recur_fibo(value-2))
recur_fibo(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment