...

/

Challenge: Iterables and Iterators

Challenge: Iterables and Iterators

Test your understanding of iterables and iterators with these coding questions.

We'll cover the following...

Problem 1

In this problem, you’re required to produce the numbers in the Fibonacci series. Write an iterator class Fibonacci that takes a number n and creates the first n Fibonacci numbers.

This the Fibonacci sequence: 0,1,1,2,3,5,8,13,21,34,...0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ... ...