Loading

Quipoin Menu

Learn • Practice • Grow

python / Iterators and Generators
exercise
1/5
Exercise 1Python
Question

Write a custom iterator class `CountDown` that yields numbers from a given start down to 1. Implement `__iter__` and `__next__`. Test with a for loop.