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: "We know that as this function divides two values, we might get an exception if y is given a value of 0."
A block of code is set as follows:
if current_time > sunset_time {
turn_on_light()
}
Any command-line input or output is written as follows:
SyntaxError: invalid syntax in line 1 column 2 1:2 syntax error: unexpected apple at end of statement Compilation error (line 1, col 2): Identifier expected error: unknown: Identifier directly after number (1:2)
Tips or important notes
Appear like this.