Python · Generators & Iterators
What does calling this line do? ``` def squares(n): for i in range(n): yield i*i g = squares(3) ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
Free to start — download the app or use it in your browser.