Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What keyword is used to define a coroutine in Python?
It starts with 'a'.
What does await do in a coroutine?
It involves waiting!
What keyword is used to declare a coroutine in Python?
It sounds like 'asynchronous'.
True or False: If a coroutine is not awaited, it executes immediately.
Consider what `await` actually does.
Create a program that fetches data from three different URLs asynchronously. Use async and await properly.
Use asyncio.gather to combine the fetch tasks.
Explain how coroutines can improve the performance of a web scraping task compared to a synchronous approach.
Consider the time spent waiting on requests.
4 more questions in this section. Enroll free to practise them all.
Enroll free