Course lesson
Avoid Nested For Loops with Generators
Generators allow you to hook together multiple generators with the yield syntax. This allows you to branch off into many different types of iterations within the main iteration and covers complex scenarios where you usually end up reaching for nested for...
- Duration
- 1 min
- Access
- Free
- Transcript
- Available
Generators allow you to hook together multiple generators with the yield* syntax. This allows you to branch off into many different types of iterations within the main iteration and covers complex scenarios where you usually end up reaching for nested for loops.