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.
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!
The midpoint line algorithm is a drawing algorithm in the field of computer graphics. It is used to determine how lines are translated into pixels.
Python is an exciting language and has always some surprises in store, no matter how long you have been working with it. In this Post, I will present 7 really cool easter eggs in Python. Feel free to try them out on your own, I hope you enjoy it!