There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Let's see how to add a new element to a stack by using push or removing an element from a stack by using pop."
A block of code is set as follows:
define swap(x, y)
buffer = x
x = y
y = buffer
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
define swap(x, y)
buffer = x
x = y
y = buffer
Any command-line input or output is written as follows:
pip install a_package
Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "One way to reduce the complexity of an algorithm is to compromise on its accuracy, producing a type of algorithm called an approximate algorithm."
Warnings or important notes appear like this.
Tips and tricks appear like this.