Home
sbozich
Cancel

Iterating over combinatorics

Very often, there is a need for implementing combinatorics (permutations, combinations and variations) and iterating over the generated values in a list for example. While it is possible to create ...

10 essential free, open-source programs for Windows and Linux

This list comprises of 10 great freeware, open-source programs which may not be an obvious find for everyone. It includes the useful utilities for every-day general use and productivity and most ar...

Text clean-up and string sanitization with Python

Text sanitizing means cleaning-up the entered text according to the previously established parameters or rules. Those rules usually involve text parsing and handling. A whole set of tools could be...

Retro computing - review of the Lenovo Thinkpad X201

Lenovo Thinkpad X201 A blast from the past, a machine that has been in active service for staggering 12 years and still rocking is certainly worth reviewing of. It is a 2010 fine specimen of the ...

Connecting Python to MySQL and tips to avoid SQL injection attacks

To quick-connect Python program with a MySQL, one needs to consider following: MySQL driver needs to be installed, connection object needs to be created, cursor object needs to be created, ...

Determining the most frequently occuring item in a sequence

A sequence is a positionally ordered collection of items. It consists of elements which can be refered to using the index number. In the most programming languages, Python included, the elements’ ...

Functions' arguments in Python

Arguments, as pieces of information passed to a function provide a way to insert values into function’s mechanism. In Python, function arguments directly depend on object reference model, as there ...

Functions and scopes in Python, Part 2

The usual way to get an output from function is a return statement. As we have seen in the part 1 of this article, once the interpreter reaches the return statement, it returns the value and ends t...

Sum of intervals Codewars challenge

Sum of intervals is the Codewars challenge that is about counting overlapping intervals. Let’s examine the problem’s description and see if we can devise a valid solution to it. Figure 1: Screens...

Functions and scopes in Python, Part 1

Functions are integral part of most programming languages. Together with classes in OOP-supported languages, they make the code more readable, concise, usable, maintainable thus greatly enhancing t...