In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "In order to exemplify the use of the multiprocessing.Pipe object, we will implement a Python program that creates two processes, A and B."
A block of code is set as follows:
def producer_task(conn):
value = random.randint(1, 10)
conn.send(value)
print('Value [%d] sent by PID [%d]' % (value, os.getpid()))
conn.close()
Any command-line input or output is written as follows: