The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
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...)
Question difficulty: 🔵🔵🔵🔵🔵