Data structures in Python — Queues

A queue is a data structure similar to a list. However, the functionality is of a limited nature, because a queue is characterized by the fact that the FIFO principle (First In, First Out) applies here. This means that the first item added to a queue is the first item removed. Adding data is called … Read more

Create a Virtual Environment in Python

Introduction What does a virtual development environment do? It isolates different Python versions and their package installations from each other. Once set up for a Python project, this means that the packages used are only available to this project. Updating one of these packages does not affect other packages installed on the system. In addition, … Read more

How to install a current version of Python on Debian

The Python programming language is already pre-installed on Debian, but usually in an old version. A current version cannot be added from the standard repositories, but with a few shell commands you get a current version on your linux system. Let’s start with the required packages and their dependencies: Next, download the Python version you … Read more

How to Fetch Hacker News from news.ycombinator.com?

Some time ago I familiarized myself with the topic of web scraping. As a programming language, the decision quickly falls on Python, since there are good libraries available for this task. When dealing with a new topic, it is not a bad idea to do so creating a self-developed program. The result is: fetch-hackernews. As … Read more