5 - Advanced Topics (Optional for Beginners)
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What keyword is used to define a coroutine in Python?
💡 Hint: Think about how we define functions in Python with a special keyword.
What does async with do?
💡 Hint: Remember how context managers work in Python synchronously.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What does the async keyword do in Python?
💡 Hint: Remember the role of async in creating coroutines.
True or False: Using asyncio.Semaphore allows unlimited concurrent tasks.
💡 Hint: Think about the control it provides over concurrency.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Design an asynchronous web scraper using asyncio that limits requests to a web service to 5 concurrent tasks while properly handling exceptions.
💡 Hint: Think about how you can create tasks with wait capabilities separate from request handling.
Write an async generator function that reads from a file asynchronously and yields each line. Implement proper asynchronous context management.
💡 Hint: Remember to structure the function to maintain async properties when reading data.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.