Intro: Python Hello World!
This is a step by step tutorial on creating a simple Python program using PyCharm Community Edition.
Step 1: Download PyCharm Community Edition
PyCharm can be downloaded from the JetBrains website for free at the following link:
To download the PyCharm Community Edition, Simply click on the black download button.
Step 2: Find the Installation File
When PyCharm has finished downloading, you should be able to find the installation file in your Downloads folder.
Double click on the PyCharm installation file.
Step 3: Installation
When the installation is opened you will be presented with the PyCharm Community Edition Setup window.
The first screen presents an introduction.
The second screen is used to select an installation location. This is useful if your computer is low on space.
Select where you want PyCharm to be installed and click Next.
The third screen presents shortcut options and gives the option to associate .py files with the PyCharm program.
This means that if a file with the extension .py is opened on your computer, it would attempt to open the file using PyCharm.
The fourth screen is used to create a Menu Folder for PyCharm.
The fifth screen will confirm that PyCharm was successfully installed.
Check the box next to "Run PyCharm Community Edition"
Then Click Next.
Step 4: Initial Setup
When PyCharm is opened for the first time, a initial configuration window will be presented.
This window allows the user to change some aesthetic attributes of the PyCharm program.
The Initial configuration window will disappear and you will see the Welcome screen.
Click on "Create New Project" to begin creating your program.
Step 5: Create a Project
You will now be presented with the New Project window.
The default location will include "untitled" at the end.
This location can be changed to almost anything you want but we will change it to "myfirstprogram".
Step 6: Create a Python File
PyCharm and other IDEs (Integrated Development Environment) usually open with a "Tip of the day" window. These are more useful for experienced programmers, usually tips pertaining to shortcuts which speed up the programming process are given.
Go ahead and close the "Tip of the day" window.
In order to create our python file where we want it, we right click on the myfirstprogram folder, hover over new, then select Python File.
This will open up a "New Python File" window in which you can name the file.
Let's name it "HelloWorld" and select OK.
Step 7: Code Your Program
Python is a very powerful programming language which allows the programmer to complete a lot using very little code.
For our simple program we will only need one line of code:
Type this into the HelloWorld.py and we will be ready to run our program.
Step 8: Run Your Program
Click Run at the top of the screen.
Click Run on the drop down menu.
Click HelloWorld on the Window that appears.
Your program will now run on the bottom of the screen.
CONGRATULATIONS! You have completed your very first Python program!