New course! Every coder should learn Generative AI!
Try a free lesson0
What exactly does yield keyword do?
1 Answer
+ 3
yield give you that your function become generator. or in another word function return partial result and when caling again another partial results . just Like next()