Explanation of creating a class-based iterator in Python using __iter__() and __next__() methods.__next__() method can be a generator with one or more yield statements.__iter__() method can be a normal function returning 'Hello' or a generator.