How do you write a program to print the Fibonacci series 0, 1,1,2,3,5,8…n?

Not able to find answer of this.

I imagine you’re looking for a way to do this in Python, not C.

What have you tried so far?

Did you try googling?

https://www.startpage.com/sp/search?query=Python+Fibonacci

https://results.dogpile.com/serp?q=Python+efficient+fibonacci

I think it’s some sort of major coincidence that we have two first-time posters, who signed up within a minute of each other, and posted at almost the exact same time. The first posted a softball question that shows they clearly hadn’t made any attempt to search for the answer, and almost instantly they got an answer promoting a commercial training website.

I’m not saying that I know for a fact that both posters are the same person, but I wouldn’t be surprised if they posted from the same IP address.

3 Likes

The timing and similar place of origin of these posts are indeed noteworthy. But if anyone here happens to be genuinely interested in beginning to learn Python, or in particular, are interested in how they might get started with using Python to compute Fibonacci numbers, they might do well to visit:

:wink:

1 Like