Project 16: Login Screen
Python Challenge
Builds on these lessons
Step 1 of 3
Project
Why Asyncio Exists
Add a comment: asyncio lets a single thread juggle many I/O-bound waits — network calls, database queries — by switching to other work whenever one is waiting, instead of sitting idle. It solves the same I/O-bound problem threading does, at a much lower cost per waiting task.
🎯 Your Task
Please add the exact code shown in the light gray box below to your editor.Do not delete your previous code, just insert these new lines in the correct place!
# asyncio lets a single thread juggle many I/O-bound waits (network calls,
# database queries) by switching to other work while one is waiting, instead of
# sitting idle — the same I/O-bound problem threading solves, at much lower cost.
import asyncio
print("Login screen ready.")