Python Off-by-One Errors

Off-by-one errors are a type of logic error in Python programming, which are surprisingly common and can easily trip you up until you gain the habit of thinking really carefully about you...

Practical Python String Methods

In this article we will look at some practical uses of Python string methods to manipulate text. Much of the the power of the internet depends on the ability to manipulate strings,...

Python books for beginners

There is no doubt that the best way to learn to program is to practice. However, this is not enough. After all, if you practice typing for many years with just two...

Installing Python Packages

One of the things which makes Python awesome is the quality and quantity of open source packages available to extend its power. This means the with the right package and just a...

Python Challenge – 7 Puzzle

Here’s a fun little puzzle for you, which lends itself well to a Python coding solution. Find a two-digit positive integer that becomes 7 times smaller when its leftmost digit is removed....

PYTHON USER INPUT

User input is one of the things which makes Python programming powerful and interesting, as it provides interactivity. This article shows you how to make Python ask for input from the user...

TRIANGLE NUMBERS WITH PYTHON

This post explores some different ways of generating the famous Triangle Numbers with Python. Before reading on, have a go a writing some Python code to print out the first 10 Triangle...