Python Friday #16: Working With Files

When you want to use Python for little maintenance tasks on your computer, you will need to work with files. Python offers you a range of built-in functions to do that and this post covers the most common ones. However, this post does not cover working with binary files. You most likely will need a …

Read more

Python Friday #12: Exceptions

When you start learning a new programming language, you will first fight a lot with the syntax. Before you even can run your program you already get an error that you need to fix. After a while those syntax errors get less and less, and you can focus on creating a working application. You quickly …

Read more

Python Friday #10: Classes (Part 2)

Last week I started with classes and the basic things you need to know. In this post I explain duck typing and inheritance. This post is part of my journey to learn Python. You can find the other parts of this series here.   Polymorphism & duck typing Python uses the concept of duck typing …

Read more

Python Friday #9: Classes (Part 1)

It took me a few weeks to reach classes and all the things I explained so far worked without them. This is a speciality of Python, then most other object-oriented languages use classes as the fundamental organisational unit for code. This post is part of my journey to learn Python. You can find the other …

Read more

Python Friday #8: Modules

I got a lot of topics covered over the last weeks. To put that to use, we need to look at ways to organise our code. Therefore, I use this post to explain modules and how they can help us to make our code maintainable. This post is part of my journey to learn Python. …

Read more