1 - The async and await Keywords
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: It starts with 'a'.
What does await do in a coroutine?
💡 Hint: It involves waiting!
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What keyword is used to declare a coroutine in Python?
💡 Hint: It sounds like 'asynchronous'.
True or False: If a coroutine is not awaited, it executes immediately.
💡 Hint: Consider what `await` actually does.
Get performance evaluation
Challenge Problems
Push your limits with advanced challenges
Create a program that fetches data from three different URLs asynchronously. Use async and await properly.
💡 Hint: 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.
💡 Hint: Consider the time spent waiting on requests.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.