May 2018
Intermediate to advanced
380 pages
9h 37m
English
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: "The sqrt(x) function returns the √x."
A block of code is set as follows:
def print_funct(arg):
print(arg)
if __name__ == "__main__":
import sys
print_funct(sys.argv[1])
Any command-line input or output is written as follows:
>>> import random>>> random.randint(0, 1000)607
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: "For example, during the creation of ...