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: “Then we proceeded with the with
open
statement.”
A block of code is set as follows:
def gets_csv_first_line (csv_file): logging.info(f"Starting function to read first line") try: with open(csv_file, 'r') as file: logging.info(f"Reading file")
Any command-line input or output is written as follows:
$ python3 –-version Python 3.8.10
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: “Then, when we selected showString at NativeMethodAccessorImpl.java:0
, which redirected us to the Stages page.”
Tips or important notes
Appear like this.