In this video, we will learn how we can use generator function to minimize the memory usages when we normal function that create a whole list in memory.
By using, python yield keyword we can create a generator function that yields (returns) the value only when requested using python built-in next() function and pause the execution of function until next value is requested using next() function.
#python #pythontutorial #pythonprogramming