Jan-02-2021, 04:24 AM
Thanks!
Reading up on the subject, I was led to the difference between yield and return:
Can't really say I grasp this yet, but it's a start!
Reading up on the subject, I was led to the difference between yield and return:
Quote:Python3 yield keyword returns a generator to the caller and the execution of the code starts only when the generator is iterated.
Use yield instead of return when the data size is large
Can't really say I grasp this yet, but it's a start!