Lazy Evaluation
-
[Python] - Generator개발/Python 2022. 7. 28. 16:38
Generator Generator functions allow you to declare a function that behaves like an iterator, it can be used in a for loop. Generator call like iterator whenever you need 1. yield if use normal function 'return' get value , but Generator use 'yield' yield can be used to control the iteration behaviour of a loop instead of building an array containing all the values and returning them all at once,..