After installing your IDE, it’s time to finally create your first python program.
*This tutorial utilizes the PyCharm IDE. If you have not installed it previously, please click here for the installation guide.
Create your first program
Step 1) Open your PyCharm IDE. You will be greeted by the following window. To create a new project, click “New Project”
Step 2) PyCharm will prompt you to change your project file path, if necessary. It is advised to keep the default one.
- You may change the location of your project. It is also advised to change the name from “untitled” to a more meaningful one, such as “FirstProject”.
- Click the “Create”
Step 3) Go into the “File” menu at the top of the page and select “New”. From here, select “Python File”.
Step 4) A new pop-up window will appear. Name the file name “Helloworld.py” or anything you would like, then click “OK”.
Step 5) Now write your first line of code:
print(“Hello World!”)
Step 6) Go to the “Run” menu at the top of the screen, and select “Run Helloworld.py” to run your program.
You should see the output at the bottom of your screen. You have just written your first Python program.