Quiz on Python itertools count Function



1. What does the itertools.count() function do?
2. What is the default start value for itertools.count()?
3. How can you specify a different step value in itertools.count()?
4. Which of the following statements is true about itertools.count()?
5. When using itertools.count(), what happens if you don't provide a stop condition?

Advertisements