Practice
Learn
← Quit
0 / 0 correct
Python
Easy
1 of 20
What is the main advantage of a generator function (using yield) over returning a list?
A
It produces values lazily, one at a time, using constant memory
B
It can be indexed randomly
C
It runs in parallel
D
It is always faster per element