LearnPy Hub
← Async Basics problems
Easy

Sleep, Then Print

Write async def main() that prints waiting, awaits asyncio.sleep(0.01), then prints the input line. Run it.

Input

One line.

Output

Two lines.

Sample 1

Input
done
Output
waiting
done

Sample 2

Input
ready
Output
waiting
ready
solution.py
Output appears here
Sleep, Then Print · Python practice problem · LearnPy Hub