simple way to create iteratorsmethods uses the yield statement breaks at this pointreturns element and continues there on the next iterator __next__(call def reverse data )for element in data [:- ]yield element for char in reverse spam )print char end member of the helmholtz association slide