example (iclass myiterable(object)"""example iterable that wraps sequence ""def __init__(selfitems)"""store the provided sequence of items ""self items items def __iter__(self)return myiterator(selfclass myiterator(object)"""example iterator that is used by myiterable ""def __init__(selfmy_iterable)"""initialize the iterator my_iterable -instance of myiterable ""self _my_iterable my_iterable self _position