def __init__ ( self , iterable ) : self . _values = [ ] self . _iterable = iterable self . _initialized = False self . _depleted = False self . _offset = 0
how to reset iteratable python
Initialize the cycle with some iterable .
def __init__(self, iterable):
        """Initialize the cycle with some iterable."""
        self._values = []
        self._iterable = iterable
        self._initialized = False
        self._depleted = False
        self._offset = 0