Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

What is the definition ecomerce and Online marketing in 100 words

Answered: 1 week ago