Challenge: Iterables and Iterators
Test your understanding of iterables and iterators with these coding questions.
We'll cover the following...
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: ...