Conventions used

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

Any command-line input or output is written as follows:

python manage.py runserver

Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "PyCharm also provides a customized view that optimally organizes workspaces in a scientific project called the SciView."

Warnings or important notes appear like this.
Tips and tricks appear like this.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.108.11