LearnPy Hub
← All topics
Topic Practice · Advanced

Async Basics problems

50 problems: 22 Easy, 18 Medium, 10 Hard.

Review the Async Basics lesson
✓1. First Coroutine
4 test cases
EasyNot tracked
✓2. Return From a Coroutine
4 test cases
EasyNot tracked
✓3. Await Another Coroutine
4 test cases
EasyNot tracked
✓4. gather() Results
4 test cases
EasyNot tracked
✓5. Total With gather()
4 test cases
EasyNot tracked
✓6. Say It Twice
4 test cases
EasyNot tracked
✓7. An Async Adder
4 test cases
EasyNot tracked
✓8. Async Countdown
4 test cases
EasyNot tracked
✓9. What Is a Coroutine?
4 test cases
EasyNot tracked
✓10. Run One Coroutine
4 test cases
EasyNot tracked
✓11. Sleep, Then Print
4 test cases
EasyNot tracked
✓12. Return a Square
4 test cases
EasyNot tracked
✓13. Await Two in Order
4 test cases
EasyNot tracked
✓14. gather() Two Coroutines
4 test cases
EasyNot tracked
✓15. Await in a Loop
4 test cases
EasyNot tracked
✓16. Is It a Coroutine Function?
4 test cases
EasyNot tracked
✓17. Add Up Results From gather()
4 test cases
EasyNot tracked
✓18. Start a Task
4 test cases
EasyNot tracked
✓19. Async Upper Case
4 test cases
EasyNot tracked
✓20. Before and After await
4 test cases
EasyNot tracked
✓21. Lengths With gather()
4 test cases
EasyNot tracked
✓22. Largest Result
4 test cases
EasyNot tracked
✓23. Who Finishes First?
4 test cases
MediumNot tracked
✓24. gather Keeps Order
4 test cases
MediumNot tracked
✓25. Background Task
4 test cases
MediumNot tracked
✓26. Time Limit
4 test cases
MediumNot tracked
✓27. Errors in gather
4 test cases
MediumNot tracked
✓28. Sequential Awaits
4 test cases
MediumNot tracked
✓29. Interleaved Output
4 test cases
MediumNot tracked
✓30. Retry a Flaky Call
4 test cases
MediumNot tracked
✓31. Fetch Prices Together
4 test cases
MediumNot tracked
✓32. Waiting for a Signal
4 test cases
MediumNot tracked
✓33. Is the Task Done?
4 test cases
MediumNot tracked
✓34. Async Comprehension
4 test cases
MediumNot tracked
✓35. An Async Context Manager
4 test cases
MediumNot tracked
✓36. An Async Iterator Class
4 test cases
MediumNot tracked
✓37. Run Code When a Task Finishes
4 test cases
MediumNot tracked
✓38. Whoever Finishes First
4 test cases
MediumNot tracked
✓39. Named Tasks
4 test cases
MediumNot tracked
✓40. Check Them All Together
4 test cases
MediumNot tracked
✓41. Producer and Consumer
4 test cases
HardNot tracked
✓42. Limit Concurrency
4 test cases
HardNot tracked
✓43. As They Complete
4 test cases
HardNot tracked
✓44. Cancel a Task
4 test cases
HardNot tracked
✓45. Shared Counter With a Lock
4 test cases
HardNot tracked
✓46. Async Generator
4 test cases
HardNot tracked
✓47. Async Pipeline
4 test cases
HardNot tracked
✓48. Two Workers Share a Queue
4 test cases
HardNot tracked
✓49. Work in Batches
4 test cases
HardNot tracked
✓50. Jobs With a Time Limit
4 test cases
HardNot tracked
← Back to all topics
Async Basics practice problems · LearnPy Hub