Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
Define a coroutine in your own words.
Think about the structure of a typical function.
What does await keyword do in a coroutine?
Consider what happens when you tell a function to wait.
What is the purpose of the async keyword in Python?
Think about how coroutines operate differently from regular functions.
True or False: You can run blocking code inside an asynchronous function.
Remember the principles of asynchronous programming.
Create a complete asynchronous TCP server with error handling that echoes client messages. Test it with a client script that sends messages.
Make sure to structure your code to handle exceptions without crashing the server.
Modify the server to handle multiple clients simultaneously, each with a unique message. Explain how the server manages these connections.
Review how tasks are created and awaited in asyncio.
4 more questions in this section. Enroll free to practise them all.
Enroll free