- Readers of this book should be familiar with the general syntax and practices found in Python programming, such as using variables, functions, and importing packages.
- An up-to-date version of Python is required before installing PyCharm. Python 3.6 and 3.7 were the current versions at the time of writing. You are also encouraged to have a distribution of Anaconda installed.
- A good internet connection is required for various parts of this book, where external tools and libraries are downloaded and used.
To get the most out of this book
Download the example code files
You can download the example code files for this book from your account at www.packt.com. If you purchased this book elsewhere, you can visit www.packt.com/support and register to have the files emailed directly to you.
You can download the code files by following these steps:
- Log in or register at www.packt.com.
- Select the SUPPORT tab.
- Click on Code Downloads & Errata.
- Enter the name of the book in the Search box and follow the onscreen instructions.
Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:
- WinRAR/7-Zip for Windows
- Zipeg/iZip/UnRarX for Mac
- 7-Zip/PeaZip for Linux
The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Hands-on-Application-Development-with-PyCharm. In case there's an update to the code, it will be updated on the existing GitHub repository.
We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!
Download the color images
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://static.packt-cdn.com/downloads/9781789348262_ColorImages.pdf.
Code in Action
To see the Code in Action please visit the following link: http://bit.ly/2no4gi6.
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."