Python Developer — Medium
Key points
- yield from simplifies generator code by delegating to another iterable
- The list() function is used to convert the generator output to a list
- The range(3) generates values 0, 1, 2
Ready to go further?
Related questions
