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