← All tasks
🔢
Programming Advanced

Order a Generator Function's Execution

⏱ 4 min ⭐ 100 XP 🔁 3 attempts allowed

What you'll do

Order what happens when a generator function using yield is iterated with foreach.

Scenario

You're processing a huge file line-by-line without loading it all into memory, using a generator.

Ready to try it?

Create a free account and try "Order a Generator Function's Execution" free for 7 days, no card required. Earn 100 XP and track your internship progress.

Already have an account? Sign in