PyCharm IDE


PyCharm is an integrated development environment (IDE), a useful tool for creating and testing Python code. First, ensure that Python is installed on your computer. Install PyCharm by following these instructions.

Preferences

After starting PyCharm, navigate to the Python code style settings via Configure -> Settings -> Editor -> Code Style -> Python. Check the box for "Use tab character".



Create a Project

Test the IDE and your settings by creating the following simple program. Create a new project, make sure to specify the directory you want the project files into and to select the "existing interpreter."

Hello World Program

Create a new project, make sure to uncheck the "create a main.py welcome script" box. Next, create a new Python file: File -> New -> Python File.

print("Hello World")
Run the script with Run -> Run or Alt + Shift + F10.



This page was last modified on 2020-08-03 at 17:04:03.

Copyright © 2018–2020 George Fox University. All rights reserved.