Write a program to produce Fibonacci series in Python.

By ayush goel in 22 Sep 2023 | 04:12 pm
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

Write a program to produce Fibonacci series in Python.

22 Sep 2023 | 04:12 pm
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

n = 10  # Number of terms

a, b = 0, 1

for _ in range(n):

    print(a, end=" ")

    a, b = b, a + b


22 Sep 2023 | 06:21 pm
0 Likes

Report

Please describe about the report short and clearly.