Pin It

Introduction à Python

TRADUCTION EN COURS

PYTHON is an object orientated high-level interpreted language.  Python is easy to use but at the same time it's extremely powerful. One of the first high-level programming languages were; BASIC, COBOL, C, C++, FORTRAN, Pascal, etc... Languages that are referred as high-level languages, is because they are easier to understand due to the fact that the written code is more similar to human language instead of machine language that only computers understand. The programs that you write using high-level language will work on any type of computer or platform.

Programs written in a high-level language must be translated into machine language. To do that, one way is to compile the program by running it through a compiler and then run it, and the other way is to execute the program through an interpreter (as we will do during our python course).

An interpreter is a computer program that translates code (program instructions) written using one of many high-level programming languages on the fly. The advantage of an interpreter is that it can immediately execute high-level programs. The Windows command prompt is an interpreter.

A compiler on the other hand, translates high-level instructions directly into machine language. Once a program is compiled it will run faster in relation to interpreted programs, but if the program is very large is it time-consuming to complile it.

During our course we will be using the Python high-level programming language, and the Windows command prompt will be the interpreter. We will create a python file, save it on the desktop in the root folder of our project and run the program (or view the code's output) through the Windows command prompt window.