LearnPy Hub
← Async Basics problems
Medium

Sequential Awaits

Await the input jobs one after another (not gather). Each job prints start NAME and, after a tiny sleep, end NAME. Read names on one line.

Input

One line of names.

Output

Lines.

Sample 1

Input
a b
Output
start a
end a
start b
end b

Sample 2

Input
x
Output
start x
end x
solution.py
Output appears here
Sequential Awaits · Python practice problem · LearnPy Hub