## Python Strategy Game – Take the Last Stone

Here’s a fun game. Play it first with a friend if you can. Start with a number between 10 and 20. Take it in turns to subtract either one or two from...

## Converting Python 2 Code to Python 3

There is so much great code written in Python 2, yet time has passed, and these days you really need to be using Python 3 in almost all situations. Many people don’t...

## Python Coding Challenge – Sum of Squares

Here’ a fun Python challenge involving just a bit of mathematical know-how: Write a function that takes an argument n and prints a pair of natural numbers x, y such that x²...

## Python Bitwise Operators

Bitwise operators and bit manipulation are like recursion in that they are both topics that are fundamental to computing, yet the amount of use you will make of them will vary gratly...

## The Babylonian Square Root Algorithm in Python

Developing your algorithmic thinking skills is a great idea whatever your programming goals are. As well as making you a much better programmer, you will also need to develop theses skills if...

## Introduction to Web Scraping with Python

One of the awesome things about Python is how relatively simple it is to do pretty complex and impressive tasks. A great example of this is web scraping. This is an article...

## Recursion in Python Programming

In this article we discuss recursion in Python programming. Recursion is a fundamental concept in Computer Science, and regardless of what your development goals are, it is good to have an understanding...

## Time Complexity in Python Programming

This is an article about time complexity in Python programming. In it we explore what is meant by time complexity and show how the same program can be dramatically more or less...

## Python Memoization

Improving the efficiency of Python Programs Using Memoization Some of you may be familiar with the Fibonacci sequence, which is famous in both mathematics and computer programming. The sequence is formed by...

## The Modulo Operator in Python

The modulo operator is used in Python programming when you need to find the remainder of integer division. It comes up in many important algorithms, and is represented by the symbol %....