Hard
Producer and Consumer
A producer puts each input word into an
asyncio.Queue, then puts None. A consumer takes items until None and prints each in upper case. Run both with gather.Input
One line of words.
Output
Lines.
Sample 1
Input
a b c
Output
A B C
Sample 2
Input
hello
Output
HELLO
Output appears here