class FancyCollection:
#remember, you're not allowed to change anything about this class, because it's from a proprietary third party
def __init__(self, items):
self._items = items
def visit(self, callback):
for item in self._items:
callback(item)
my_fancy_collection = FancyCollection([4, 8, 15, 16, 23, 42])
my_fancy_collection.visit(print)