Question: Python 3.6- My code to find out fibonacci number sequence at 50th term is not working. Please fix my source code and attach /screenshot source

Python 3.6- My code to find out fibonacci number sequence at 50th term is not working. Please fix my source code and attach /screenshot source of working source code and output. If you could provide step by step block comments explaining how you corrected the issue, it would be greatly appreciated. Thanks

Python 3.6- My code to find out fibonacci number sequence at 50th

term is not working. Please fix my source code and attach /screenshot

6 def fibonacciNum (n): To create a program that includes a recursive function that finds and displays Fibonacci numbers from 1 to 50 9 10 Test Data: input: whole number output: list of fibonacci numbers for the value entered by the user params: integer (int) returns: fibonacci numbers (int) 15 16 if n=-1: 19 20 21 return (1) return (0) fibonacci =[ 0,1] else: for i in range (2,n+1): 24 fibonacci.append (fibonacci[i-11+ fibnonacci[i-2]) 25 2 6 stringVer ".".join(str (a) for a in fibonacci) return(stringVer) 28 29 30 3 1 32 x int(input ("Enter number of terms:")) print(fibonacciNum(x))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!