## Classic Snake Game with Python Turtle Graphics

Python Turtle Graphics is awesome! It can be used to learn and teach Python programming and Computer Science from elementary to advanced level. There is a post on this blog about the Turtle Graphics demos which come with IDLE (the development environment that ships with Python) – check them out to get an idea of […]

## Python Turtle Graphics – Drawing with Stamps

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 this classic learner-programmer exercise: Make a chessboard pattern using Python Turtle Graphics. You might want to try the challenge for yourself before continuing […]

## A Bit of Fun with Python

Every now and then I look at a syllabus or textbook for GCSE Computer Science and it strikes me how much more interesting the content could be. Fun with Python for Computer Science GCSE I mean, look what’s possible with some fairly basic Python code. Python International Space Station Tracker How about this international space […]

## We Need to Talk About Pseudocode

Pseudocode for Computer Science GCSE and A Level Pseudocode for Computer Science GCSE and A Level is supposed to provide a way of describing algorithms which is simple, clear, unambiguous and language-agnostic. However, we have a language which meets 3 of these criteria already – Python!! As for the fourth, Python syntax is so clear […]

## Recording a Python Course for LinkedIn January 2020

As a very good song by a very good band once put it … you may find yourself, in another part of the world… Somehow I found myself in Carpinteria, California, USA this morning, having spent the last three days working intensively on recording a Python course for LinkedIn Learning. It has been an amazing […]

## Eight Queens Puzzle in Python

Click me to play The Eight Queens Puzzle is a classic problem whose goal is to place 8 queens on an 8×8 chessboard in such a way that none of the queens share a row, column or diagonal. The version discussed here allows exploration of not just an 8×8 but an arbitrary size nxn board, […]

## Generating Random Graphs in Python

Random Graphs in Python for A Level Computer Science and Beyond The jupyter notebook below shows an implementation of an algorithm for generating a random undirected, unweighted graph. The algorithm uses the Erdős–Rényi model, but you don’t need to know about that to understand how it works – the pseudo code makes is quite clear, […]

## Python for GCSE Science and Maths

It often surprises me how little integration there seems to be between Computer Science and other STEM subjects. Just think of the possibilities! Python is the language of choice for working with data in a vast range of professional fields. Astronomy? Of course. Marine Biology? You bet. Financial Analyst? Yep! Wouldn’t it be good to […]

## Circle Sector Challenge for GCSE Computer Science

Maths GCSE and Computer Science GCSE are often taught very separately, and yet they make excellent companions. Writing a program to explore a topic from Maths can really help to understand the topic deeply as well as providing a great opportunity to practice your coding skills. Here’s a fun challenge to keep your programming skills […]

## Installing Python Packages with Pip

When you install Python on your computer, it comes with the standard library which is a collection of modules that allow you to do all sorts of useful things such as mathematical calculations, interacting with the operating system, building GUIs (Graphical User Interfaces) and much more. However, it doesn’t stop there. There are thousands of […]