November 2018
Beginner
304 pages
7h 35m
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: "However, when the print() function is called in line 11, the text is printed as it was originally entered."
A block of code is set as follows:
tank1 = tank.Tank( "Tank 1", level=36.0, fluid_density=DENSITY, spec_gravity=SPEC_GRAVITY, outlet_diam=16, outlet_slope=0.25 )
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 sys
if len(sys.argv) > 1: # Check if arguments are provided
entered_value = sys.argv[1:] ...Read now
Unlock full access