LearnPy Hub
← Async Basics problems
Easy

Before and After await

Write async def main(a, b) that prints a, awaits asyncio.sleep(0.001), then prints b. Read two words and run it.

Input

Two lines.

Output

Two lines.

Sample 1

Input
first
second
Output
first
second

Sample 2

Input
ready
go
Output
ready
go
solution.py
Output appears here
Before and After await · Python practice problem · LearnPy Hub