Python Professional — Hard
Key points
- The producer function adds values to the queue before adding None.
- The consumer function prints the values in the order they were added.
- The asyncio.gather() function runs both producer and consumer concurrently.
Ready to go further?
Related questions
