Posted on Leave a comment

Getting Started with PyCharm – Hello World

PyCharm is a fully featured IDE. For the new user this can be quite overwhelming. Even for the seasoned developer it can be quite difficult finding your way through a new IDE. Completing a simple hello-world app is a great way to break ground on this tool.

We will start from the welcome screen. After you have installed and launched PyCharm this is how you will be greeted.

PyCharm Welcome Screen
PyCharm Welcome Screen

1.) Select “Create New Project”, and you will see the screen slide over and we can walk through the “New Project” dialog.

PyCharm - New Project Dialog
PyCharm New Project Dialog Screen

2.) Change the file name to “hello-world”

PyCharm - Name a New Project
PyCharm – name a new-project

3.) Click Create

PyCharm - Create Button

4.) Right CLick on the FileFolder name “hello-world” on the left side of the screen. Select “New”, the “Python FIle

PyCharm - Add a Python File
PyCharm – add a new Python file to your project

5.) Give your python file a name, like “helloworld”

PyCharm - Name a New Python File

6.) Now type this into the black pane on the right:

print ("hello world!")
PyCharm - HelloWorld code
PyCharm add code to your project

7.) Highlight the “” file in the Project Tree on the left and click the Run item in Top menu. The second Run entry will be highlighted, select that.

Pycharm - Running Code

8.) From the Run Dialog select the helloworld file ( right facing white triangle ). The click green Run Arrow

PyCharm - Select file to run

If all goes well you will see the run output at the bottom of your screen.

PyCharm - helloworld code output

An that is all there is to it. Once you have navigated the “helloworld” you have the basics necessary to use this IDE.