How to run Python script in PyCharm

This tutorial contains step by step to run Python script in PyCharm.

If you have not install PyCharm on windows install follow these steps.

Step1: Open PyCharm tool from Start Menu.

How to run Python script in PyCharm
How to run Python script in PyCharm

Step2: Click on New Project from above screen.

Step3: Specify the Location and name for the project and click on ‘Create’ to start the project.

Step4: Right click on project name(First Project) and select New then click on New Python file as shown below. Then provide the name for it.

Step5: Enter the below lines of code and click Run button to execute the Python script which is in green color. We can run the script by using function keys Shift+F10 or CTRL+Shift+F10.

a='Welcone to r2schools' print(a)

Step6. You can see the output in Python Console as shown below.

The same explained in the below video: