Answers
>
Python
>
Mentoring
>
Article
Write a recursive function to return the nth Fibonacci number in Python
def fibonacci(n): if n <= 1: return n else: return fibonacci(n-1) + fibonacci(n-2)
FG
Answered by
Finn G.
•
Python tutor
2084 Views
See similar Python Mentoring tutors
Related Python Mentoring answers
All answers ▸
Write a function that checks whether a number is prime or not.
Write a program that can convert between celcius and farenheit temperature scales
What is the difference between a for and a while loop?
Create a program that takes in two numbers and returns the highest of the two