Category: Python

decoration on dark grey table
Code Principles

Decorators in Python

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!

Read More »
person using white and silver computer keyboard
Python

New Syntax Features in Python 3.9

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!

Read More »
python speed up thumbnail
Python

5 Ways to Speed Up Python Code

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, we want to show you 5 ways to speed up Python code without sacrificing any readability. Yannic SchröerI am a computer scientist and entrepreneur from Germany. I chose to work in computer science because I love building things and improve people’s lives. code-specialist.com

Read More »
bubble sort in python preview
Algorithms

Bubble Sort in Python and how to Visualize it

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.

Read More »
reverse preview image
Code Interview

Reverse words in a string

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.

Read More »
kmeans preview
Algorithms

Visualize K Means Algorithm in Python

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.

Read More »
many books
Python

Dictionary-Tricks in Python

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!

Read More »
pencils dark bg
Algorithms

Midpoint Line Algorithm

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.

Read More »