Did you know? Programmers convert coffee to code.

If you like my articles, sponsor me a coffee.

At the other end of the link I post some results of my other hobbies, like playing bass. It is worth checking it out ;)

Category Archives for Python

Day Against DRM

On the 4th of May 2016 is again International Day Against DRM. This is why I give discounts on my books at LeanPub from the 1st May 2016 to the 5th May 2016. You can read more about the cause here. And to buy my books follow these links with the coupon discount included: Website […]

Continue reading

Object-Oriented Programming (OOP)

Now we arrived at object-oriented programming. This has (had) its hype where every language was designed around objects and Python developer Guido van Rossum thought “Why not?” and added classes to support object-oriented development. Some python evangelists think this was a bad decision, some think it was a good approach… This article is an excerpt […]

Continue reading

Guess the number — The return

We have seen this example previously. There I included a lot of loops to handle user input and the main logic… Now it is time to refactor the application to use functions. This should make the code readable and we could re-use parts later. One of those re-usable parts is the number reading. We have […]

Continue reading


Now we have learned the basics of Python programming: variables, collections and loops. If you have followed the examples and the tutorial you might feel that sometimes we use too much code and it can be leveraged a bit. But maybe you do not know how to do it. This article is an excerpt of […]

Continue reading


Loops allow to loop through the program code and repeat blocks of code until a given condition is fulfilled or not fulfilled. The code which is repeated is called the loop’s body. This article is an excerpt of my book Python 3 in Anger. For a more detailed version take a look at the book.

Continue reading

Decision making with conditionals

After this vast amount of introductory articles with the basic types of variables in Python 3 it is time to go on and introduce conditional operators which help us create an application flow based on different conditions at runtime. This article is an excerpt of my book Python 3 in Anger. For a more detailed version […]

Continue reading

The Python dictionary

In this article I will tell you more about Python dictionaries. Dictionaries are the key-value stores in Python. They enable a fast access of elements because of the hash-table like implementation and that the keys have to be unique. Keys and values are separated with a colon (:) and the whole dictionary is defined between […]

Continue reading

Sets in Python 3

A set is an unordered collection of unique items. Unordered means that this type of collection does not allow indexing and you cannot access their elements through an index like in the case of a list or a tuple. Unique means that every element is only once in the set even if you put the […]

Continue reading

Tuples in Python

This will be a short article about tuples because sometimes you have to use them — or you just simply encounter them. And for these cases it is good to be versed what they can and what they cannot do. This article is an excerpt of my book Python 3 in Anger. For a more detailed […]

Continue reading