python programming basics

Python Programming Basics

Python Programming Language

Python is a programming language that is easy to learn and very versatile thanks to its clear syntax and simple readability. Python is freely available for the common operating systems. The usual programming paradigms such as object-oriented or functional programming are supported.

Python is already around 30 years old, but for some time now it has again occupied places in the higher ranks of the lists of the most popular programming languages on the market. And there are many good reasons for this. Python has a comprehensive standard library and numerous other libraries. Due to the large user base and because the language has existed for so long, there is a wealth of resources to fall back on. These are just a few of the reasons why Python has become indispensable in fields of application such as artificial intelligence or machine learning.

Programming paradigms and typing discipline

Python can be classified into multiple paradigms: object-orientedfunctional, proceduralimperative. A programming paradigm is a complex of concepts, principles and abstractions which define a fundamental style of programming.

The typing discipline of a language is defined by the nature of type constraints and the way they are evaluated and enforced.
Type Strength: strong
Type Checking: dynamic
Type Safety: not safe

Object Orientation

Programs written in Python use objects. Objects are divided into two components, data elements and the associated functions. The contents of data elements represent the state in which an object is currently located. Functions are operations that move a data object from one state to another. The entirety of objects with the same properties is called a class. Object-oriented programming is the compilation of class descriptions, i.e. the description of the data elements that each object of the class contains, as well as the functions that are applicable to each object of the class.

Imperative Programming

In the imperative programming paradigm (command-oriented paradigm), the source code specifies exactly what the program should do step by step to reach the result. It is specified how a problem is to be solved. An imperative program consists of a sequence of commands, which the computer processes in the given order. In order to dynamically adjust the sequence of commands to be processed, jump commands can be included. Jump commands can be used to switch to any point in the command sequence in order to continue processing there.

Functional Programming

Python is primarily known as an object-oriented programming language. To be precise, Python is a multi-paradigm programming language. This includes functional programming as well. Although most Python programs are object-oriented and use an imperative approach, it is also possible to write purely functional programs with this language.

Machine Learning

The field of Machine Learning has been growing rapidly for a few years and Python is the most popular programming language for writing algorithms for Artificial Intelligences.

Python is the standard in the field of Data Science and Machine Learning, especially for Deep Learning. Python offers a variety of libraries and tools in the field of data science, such as pandas or numpy, which has led to the formation of a large machine learning community.


The large community is another reason why you should use Python. The large and vibrant user base means that for almost all your questions there will be a forum and someone who can help you.