How do you do the Fibonacci series in Python?
- INPUT FORMAT: Input consists of an integer.
- OUTPUT FORMAT: …
- SAMPLE INPUT: 7.
- SAMPLE OUTPUT: 0 1 1 2 3 5 8.
- PREREQUISITE KNOWLEDGE: while loop in Python and Recursion in Python. …
- Step 1:Input the ‘n’ value until which the Fibonacci series has to be generated.
- Step 3:while (count <= n)
- Step 5:Increment the count variable.
Comments
Post a Comment