Introduction To Python Language

Watch video presentation on installation and writing first program here;

Watch now!

In this tutorial we will define python, look at advantages and disadvantages, then we will see how to get started with python and finally we write our first program in python.


Python– it is defined as an interpreted high-level programming language which is used for general purposes, it is very powerful programming language which can be easily incorporated with c++, C and Java languages but it differs with this languages due to added new functions and data types.

Why is it referred to as interpreted language?

It is referred to as interpreted language as the codes are written in the text editor and then place them in the python interpreter to be interpreted, whereby they are interpreted line by line and if an error occurs it stops to that line with an error.

What python can be used for?

Python as we have discussed it is a very powerful language and it is used in many areas as follows;

  • Web development
  • Machine learning
  • Developing mobile applications
  • Developing video games
  • Developing operating systems

Advantages of python language

  • Easy to learn and read
  • It reduces the cost of maintaining the programs
  • It has very simple but effective object oriented programming approaches
  • Python has efficient high level data structures
  • It commonly used in many development and applications areas

Disadvantages of python language

  • It has very low speed of execution as the codes are executed line by line
  • It has design restrictions
  • It is very weak when it comes to mobile computing and even browsers since it is not memory efficient and also have very slow processing power
  • It has runtime errors since it is a dynamically typed language due to its nature the data type of any variable may change in future leading to runtime errors.

Types of python versions are;

  • python 2
  • python 3

How To Get Started With Python Language

In this part we will discuss how to install python and write our first python program.

a) How to install python interpreter?

Before you install python in your computer you will need to check whether is already installed as many pcs and macs have python already installed, to check if your pc or mac has python installed you will type this in your command prompt.

C:\User\Your pc name\python--version
//this is for the windows
//this is for the linux and mac
If you find no python installed in your pc or mac then you will have to download it from their official website which is or just click on this link here to download it right now; Download Python Now . Then install it to your computer. After than you will need a compatible text editor installed in your pc or mac, you may install notepad++, visual studio code, sublime text, brackets but i would recommend you install pycharm this is very good in interpreting the python codes with good user experience, download from their official site or just click on this link to download it right now; Download Pycharm Now. Then install it to your computer and then set up it by creating your project name and the python interpreter version installed in your computer.

b) Let’s write our first python program

First you will to save your file with (.py) extension for instance we may have Then in your text type your code as follows;

print("hello programmers")

//you may use single quotes

On your navigation bar click on the Run or just press shift+f10, it will produce hello programmers

Another way of printing out your results is using your python interpreter command line where you launch it and type this;

C:\Users\Your pc name>python

//Or you can just copy the path where the file is stored
//then press enter to see the result

After you are through with a particular program and you just wish to exit the python interpreter command line then you just type this exit() then press enter. Hope now you understand how to get started with python language, in our next tutorial we will discuss various python syntaxes.

Thank you for reading through our tutorial. As we continue learning about python hoping to meet you in our next tutorial.