IT developer, trainer, and author. Coauthor of the Debian Package Management Book (http://www.dpmb.org/).
Python String Interpolation with the Percent (%) Operator
There are a number of different ways to format strings in Python, one of which is done using the % operator, which is known as the string formatting (or interpolation) operator. In this article we'll show you how to use this operator to construct strings with a template string and variables...
As already pointed out in a previous article titled Commenting Python Code you have learned that documentation is an essential, and a continuous step in the process of software development. The article mentioned above briefly introduced the concept of docstrings which is a way to create documentation for your Python...
Rounding Numbers in Python
Using a computer in order to do rather complex Math is one of the reasons this machine was originally developed. As long as integer numbers and additions, subtractions, and multiplications are exclusively involved in the calculations, everything is fine. As soon as floating point numbers or fractions, as well as...
Working with PDFs in Python: Inserting, Deleting, and Reordering Pages
This article is the third in a series on working with PDFs in Python: Reading and Splitting Pages Adding Images and Watermarks Inserting, Deleting, and Reordering Pages (you are here) This article is part three of a little series on working with PDFs in Python. In the previous articles we...
Working with PDFs in Python: Adding Images and Watermarks
This article is the second in a series on working with PDFs in Python: Reading and Splitting Pages Adding Images and Watermarks (you are here) Inserting, Deleting, and Reordering Pages Today, a world without the Portable Document Format (PDF) seems to be unthinkable. It has become one of the most...
Working with PDFs in Python: Reading and Splitting Pages
This article is the first in a series on working with PDFs in Python: Reading and Splitting Pages (you are here) Adding Images and Watermarks Inserting, Deleting, and Reordering Pages Today, the Portable Document Format (PDF) belongs to the most commonly used data formats. In 1990, the structure of a...
Commenting Python Code
Programming reflects your way of thinking in order to describe the single steps that you took to solve a problem using a computer. Commenting your code helps explain your thought process, and helps you and others to understand later on the intention of your code. This allows you to more...
Entering the Linux Universe as a Newbie
By Zoleka and Frank Hofmann The world of technology is a fascinating one. For an end user who has always used Microsoft Windows or Mac OS X, we thought it would be very easy and we would nail it when it came to learning other operating systems such as Linux...
Running SQL on CSV Data: Data Conversion and Extraction
A lot of tools output data as comma-separated values (CSV). It is a simple but common tabular data format of plaintext that can easily be processed. Each line of the file represents a single record. A record consists of the same number of fields, or columns. Usually, the delimiter between...