LearnPy Hub
← Async Basics problems
Easy

An Async Adder

Write async def add(a, b) that awaits a tiny sleep and returns a + b. Read two numbers and print asyncio.run(add(a, b)).

Input

Two integers on one line.

Output

One integer.

Sample 1

Input
2 3
Output
5

Sample 2

Input
-1 1
Output
0
solution.py
Output appears here
An Async Adder · Python practice problem · LearnPy Hub