Archangel Macsika Sikademy Image
Archangel Macsika

How to Setup your Computer for Python Programming

Tutorial 3 of 3 | 3 minutes read
How to Setup your Computer for Python Programming - Sikademy
Tutorial Guide
Scroll for more menu list

To begin learning Python, you need to setup your computer or device to write Python programs. This tutorial will teach you how to setup your local computer to execute Java Programs. However, if you already have a working Java development environment, you are welcome to skip this step.

Firstly, you should know that some computers have Python already preinstalled.

How To check if you already have Python installed on your computer

On a Windows OS computer, open your Command Prompt and enter the command below:


python --version

On macOS and Linux OS computers, open the terminal and enter the command below:


python --version

If Python is preinstalled on your computer, you should see an output showing the version of Python installed on your computer.

It is important to check the version to ensure it is Python 3.x.x where x is any number that represents the various python versions.

If you do not have Python installed or your version is Python 2.x.x, you can easily download and install the latest version of Python programming by following this link.

The installation process is very easy and straight-forward.

First you go to the downloads page and select the version for the operating system you use. In most cases, the website automatically detects your operating system and shows you the recommended download. Please ensure you download the version that starts with 3.

Next, run the downloaded file and follow the installation guide. The default setup is usually okay.

Finalising Set Up - Create a Hello World Program

If you've successfully downloaded and installed python, we need to test if everything is okay by running a simple hello world program.

To write the program, you will need a text editor. In this tutorial series, you may use any text editor, but we recommend using "Sublime text editor." If you do not already have sublime text editor, download, install and set it up on your computer.

Create a Hello World Program

  • Create a folder on your computer desktop with the name sikademy-python-tutorials.

  • Copy and paste the code below into a new page on sublime editor and save with the name tutorial.py. Ensure the file is saved in the sikademy-python-tutorials folder located you created earlier.

  • Start up Command Prompt (for windows) or Terminal (for mac and Linux). Using the command prompt or terminal, navigate to the "sikademy-python-tutorials" folder, and enter the following command:

    
    python tutorial.py
    

    Your output should read:

    Hello World. My name is Archangel!

Wrap Off

The installation process for python is very simple and straaight-forard and you can also find more information online on how to go about it step-by-step. However, if you run into errors or unable to complete this tutorial, feel free to contact us anytime, and we will instantly resolve it. You can also request clarification, download this tutorial as pdf or report bugs using the buttons below.

Tutorial Exercise

Install Python on your computer and run the Hello, World program.


Enjoy this Tutorial? Please don't forget to share.