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...
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...
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²...
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...
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...
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...
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...
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...
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 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 %....