Conventions used
There are a number of text conventions used throughout this book.
Code in text
: 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: “The model itself is created one line above, in the model = LinearRegression() line.”
A block of code is set as follows:
def fibRec(n): if n < 2: return n else: return fibRec(n-1) + fibRec(n-2)
Any command-line input or output is written as follows:
>python app.py
Best practices
Appear like this.