+ 4
Firstly , to explain yield i will have to explain what a generator is. Unlike functions which return a specific value or argument Everytime it's called , generators return distinct values when they are called and the yield keyword is what is used . Think of yield like a keyword that returns a value from a generator šŸ˜‰
15th Mar 2022, 6:05 PM
eskayML šŸ’£
eskayML šŸ’£ - avatar