September 2019
Beginner to intermediate
494 pages
13h
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: "To follow this example, import the Chapter04/Inspection project into your workspace and open the main.py file, or copy and paste the following code into a PyCharm project."
A block of code is set as follows:
def main(): print(math.sqrt(4))if __name__ == '__main__': main()
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
def distance(self, p): diff = self - p distance = sqrt(diff.x**2 + diff.y**2) return distance ...
Read now
Unlock full access