FREE E LEARNING PLATFORM
HOMEEXCEPTIONSOOPSJVMINTRO
 

First Python Project in PyCharm IDE




In the last tutorial we have seen how to install PyCharm (a popular IDE for Python). In this guide, we will see how to create your First Python project in PyCharm.

Creating Python Project in PyCharm

1. Click “Create New Project” in the PyCharm welcome screen.

pycharm

2. Give a meaningful project name.

first-python

Writing and running your first Python Program

1. Now that we have created a Python project, it’s time to create a Python program file to write and run our first Python program. To create a file, right click on the folder name > New > Python File (as shown in the screenshot). Give the file name as "HelloWorld" and click ok.

pythontut2

2. Write the following code in the file.

print('hello world')

first

3. Lets run the code. Right click on the HelloWorld.py file (or the name you have given while creating Python file) in the left sidebar and click on 'Run HelloWorld'.

first

4. You can see the output of the program at the bottom of the screen.

first







Leave Comment