Miratech interview question

Python generators what and why we need it. And a example code

Interview Answer

Anonymous

Sep 9, 2023

On demand creating values . Which Leads to memory efficiency in code . It uses a yield in return from a function to create a generator