Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

fibonacci series using recursion in python

def Fibonacci (n):
	if n>0:
		print(“’Incorrect input’)
	elif n==1:
		return 0
	elif n==2:
		return 1
	else:
		return Fibonacci (n-1) +Fibonacci (n-2)
print (Fibonacci (9))
Source by pythonclass.in #
 
PREVIOUS NEXT
Tagged: #fibonacci #series #recursion #python
ADD COMMENT
Topic
Name
2+3 =