Practice ยท 1 of 2
RangeIterator
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__).
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Iterator Drills