Exercise: Create a Fibonacci Iterator

Challenge yourself with this exercise of creating a Fibonacci iterator.

Problem statement: Create a Fibonacci iterator

In this coding exercise, you will make an iterator that returns values from the Fibonacci series. If you are not familiar with this, the series starts with 0, then 1. Each subsequent value in the series is formed by adding the two previous values, as shown below.

Get hands-on with 1200+ tech skills courses.