LearnPy Hub
← Async Basics problems
Easy

First Coroutine

Write async def main() that prints Hello, awaits asyncio.sleep(0.01) and prints the input name. Run it with asyncio.run(main()).

Input

One name.

Output

Two lines.

Sample 1

Input
Mim
Output
Hello
Mim

Sample 2

Input
World
Output
Hello
World
solution.py
Output appears here
First Coroutine · Python practice problem · LearnPy Hub