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: “For example, Remove_Stop_Words()
relies on a list comprehension to perform the actual processing.”
A block of code is set as follows:
import getpass user = getpass.getuser() pwd = getpass.getpass("User Name : %s" % user)
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
import getpass user = getpass.getuser() pwd = getpass.getpass("User Name : %s" % user)
Tips or important notes
Appear like this.