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...
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...
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 u...
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, ...
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’ ...
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 ...
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 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 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...
Coding, like any other skill, needs constant improvement, time investment, commitment and honing. Regardless of the knowledge level you’re at, if you don’t practice, your performance in the field w...
A recursion is problem-solving method which calls itself in a range of calls until the base one. Only the base call is defined with clear solution; other ones are derived from it. A base call final...