Challenge: Fibonacci Sequence up to n Number Of Terms

In this exercise, you have to compute Fibonacci series up to n number.

Problem Statement #

In this exercise, you have to write Fibonacci Sequence of a given number.

  • You have to print the sequence up to the given range.

  • There is a string variable ans given in which you have to store all the Fibonacci values computed up to the given range by appending them.

    • Here’s a link showing how you can add values to a string.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy