The dnf package manager

dnf update command in fedora linux

In the Linux distribution Fedora, various package managers are available. In addition to YUM and RPM, there is dnf—a fork of YUM that has served as the default package manager in Fedora since version 22. The fundamental commands of this program are explained in this blog post. The following command can be used to search … Read more

Boolean Data Type in Python

In programming, it’s common to need to compare values with each other. To accomplish this, Python provides six comparison operators, which are listed in the following table: Operator Meaning < less than <= less than or equal to > greater than >= greater than or equal to == equal to != not equal to The … Read more

Basic Operators in Python

Mathematical expressions in IDLE

Basic operators can be summarized as those that are essentially known from mathematics and that are used in programming for daily practice. The following table provides an overview of these arithmetic operators. Operator Meaning + Addition – Subtraction * Multiplication / Division ** Exponentiation // Integer Division (Quotient) % Modulo (Remainder) The Python shell (IDLE) … Read more

Numeric Data Types in Python

This blog post is all about numeric data types—in other words, numbers. Python provides the following data types for working with numbers: I won’t go into detail about complex numbers here, as in practice, the focus is clearly on the int and float types. int The int data type includes positive and negative whole numbers: … Read more

Using the Ollama API with Python and requests

Featured image for the blog post

An earlier blog post explained how to access the Ollama API from the shell using the curl program. If the gemma3 model is used as a local AI on the system, it might look like this: In this article, we’ll take a look at the Python programming language and how to use the requests library. … Read more