LearnPy Hub
← Async Basics problems
Easy

Say It Twice

Write async def twice(word) that prints the word, awaits asyncio.sleep(0.01) and prints it again. Read a word and run it with asyncio.run.

Input

One word.

Output

Two lines.

Sample 1

Input
hello
Output
hello
hello

Sample 2

Input
Python
Output
Python
Python
solution.py
Output appears here
Say It Twice · Python practice problem · LearnPy Hub