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 %....
2-dimensional lists are an extremely important data structure in Python programming, with many applications. They can be very confusing to begin with, and you should make sure you are confident and competent...
Some Python developers would say that there are two fundamental data structures which form the basis of the language: lists and dictionaries. Whether or not that is true, they are both certainly...
In this article we are going to take a look at two important Python list methods – append() and extend(). Both are very useful, but each serves a different purpose. Python List...
This post is about how to produce retro sound effects using Python. These kinds of effects added greatly to the excitement of playing early computer games and are still loved by many....
Python Programming Challenge – Intervals of Consecutive Characters Here’s a fun Python programming challenge: Write a function which takes a string as input and returns a list of tuples containing the start...
This article will show you how to code the classic Snake Game with Python. Stop press! I now have an in depth video course on building the Classic Snake Game available on...
Python Turtle Graphics stamps are awesome. They are not that well known, and learner python programmers often do things in a more complicated way than they need to as a result. Take...
Do you mean the thing or the container for the thing? In this article I want to discuss a key distinction which crops up again and again throughout Computer Science GCSE and...
Have you heard of the puzzle about the farmer, the wolf, the goat and the cabbage? You can play it here (click the “run” button to start): There are many different ways...