Program to demonstrate Generators in PythonMay 22, 2021 · One min readKaustubh KulkarniServiceNow DeveloperQue > Program to demonstrate Generators in Pythonfile.pydef func(a): yield aa=[1,2,3]b=func(a)next(b)Output[1, 2, 3]