Practice ยท 2 of 2
Sequential Awaits
Implement async def flow() that awaits two steps in order: step_one() returns 1 (after sleeping 0.01), step_two(n) returns n + 1 (after sleeping 0.01); flow returns step_two(step_one's result) โ i.e. 2. Provide a sync run_flow() wrapper using asyncio.run.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Coroutine Drills