Practice · 1 of 2
RangeIterator
CHALLENGE
Difficulty: intermediate+25 XP
Create a class RangeIter(start, stop, step) that is iterable and yields start, start+step, ... below stop. Implement __iter__ and __next__ (return self from __iter__).
Press Submit to check your solution.
Back to lesson: Practice: Iterator Drills