Have you ever seen “@” symbols in Python code and wondered how they work and what they do? The expressions used with them are called decorators, and while they may seem magical at first glance, understanding them is not a masterpiece. In this post we are going to demystify the decorators in Python and explain what they do, how they work, and how you can create them yourself!
In October 2020, Python 3.9 introduced amazing new syntax features. As of now, you can use the new operators for dictionaries, better type hints and the advanced syntax for decorators. Read more about them in this post!
Python isn’t the fastest language by far, but it is fun and forgiving due to the dynamic typing and the reduced response because of being interpreted rather than compiled. There are other languages that are way faster when it comes to computational speed. But that’s not a reason to abandon Python. In our first video, […]
In this post about the bubble sort algorithm in Python, we want to look into how to implement and visualize it. Bubble sort isn’t quite an efficient algorithm when it comes to time complexity. However, it is easy to code and to understand, so it is often an introductory problem for computer science students and pupils.
The problem of reversing the order of words in a string was one of the most popular code interview questions of 2020. We want to solve the problem here ad present and exemplary solution.
Hello folks! Today we want to introduce a new category on this blog: “Code Interview”. In this category, we want to post our solutions to frequent code interview questions. Often when you look into these solutions, they’re cryptic and hard to understand. We, in contrast, want to provide our solutions by following the clean code […]
GRASP is an acronym for General Responsibility Assignment Software Principles. In this article, we want to point out the principles and how they work.
In this article we want to take a look at the k-means algorithm. The k-means algorithm is used to determine clusters. It is often the first algorithm you will see in any machine learning introduction, as it is easy to understand. We will code the algorithm in Python and also visualize it.
In Python, the dictionary is one of the most powerful data structures you can use. There are many features and techniques concerning dictionaries that you may not have on your radar yet, but they will help you to simplify your code and gain more flexibility. This post will present you the 10 most important dictionary-tricks in Python!