Question #75

Which statement is correct?
def myfunction():
    mylist = range(3)
    for i in mylist:
        yield i*i

When a function containing the yield keyword is executed, its code is not executed, it only returns a generator that can then be iterated on. (stackoverflow.com/questions/231767/what-does-the-yield-ke...)


Comment on Disqus:

Question difficulty: šŸ”µšŸ”µšŸ”µšŸ”µšŸ”µ


Similar questions: