Blog Archives

Hogwarts Sorting Hat Challenge

In the Harry Potter series of novels written by British author J. K. Rowling, The Sorting Hat is a magical hat at Hogwarts that determines which of the four school Houses each new student belongs most to. These four Houses

Voting Age Checker – Flowchart

For this challenge you are going to code a script to ask a user how old they are and inform them as to whether they are old enough to vote or not. If they are not old enough to vote,

BBC micro:bit – Tetris Game

For this challenge we are creating a game of Tetris to play on the BBC micro:bit. The game will be based on the following four shapes: The game will use the following inputs: Button A: Move current brick to the

Archery Scoring Algorithm

In this challenge we will write a Python program to randomly shoot an arrow on a target. We will then use Pythagoras’ Theorem to calculate the distance between the arrow impact and the centre of the target. This distance will

What’s My Change?

Your Challenge Using either Python or HTML + JavaScript, write a program that prompts the end-user to enter two values: Value 1: Amount to be paid by the customer Value 2: Amount received from the customer The program should then

The Zoo Keeper’s Puzzles

Learning Objectives: This set of puzzles will improve your Python skills when using If Statements (Selection) You will focus on: Using comparison operators: ==, !=, < , >, = Using Boolean Operators: AND, OR, NOT if statements use comparison operators

Marathon Time Calculator

In this challenge you are going to write a Python script to help a marathoner predict the overall time they can complete a Marathon in (42km). This estimation will be based on the runner’s pace which is the time they

Cake Sale

You are organising a cake sale and want to predict how much money you will raise. During this cake sale you will be selling the following three types of cakes: Input You decide to write a python script that asks

BBC micro:bit – Simon Game

In this blog post we are looking at recreating a fully working Simon Game using the BBC micro:bit. If you are not sure what a Simon Game is you can check it on this wikipedia page. You can watch the

Youtube Channel: Video Tutorials

Python Tutorials: Less than 3 minutes series Python Tutorials: Getting Started with Python Python Challenges: Solved! BBC micro:bit Find more videos on our YouTube channel:

Pygame Tutorial – Adding More Sprites

This tutorial is the fourth tutorial in a serie of five Pygame tutorials: Tutorial 1 – Getting Started with Pygame Tutorial 2 – Creating Sprites using Pygame Tutorial 3 – How to control your sprites Tutorial 4 – Adding More

Pygame: How To’s?

This tutorial is the fifth tutorial in a serie of five Pygame tutorials: Tutorial 1 – Getting Started with Pygame Tutorial 2 – Creating Sprites using Pygame Tutorial 3 – How to control your sprites Tutorial 4 – Adding More

3D Traffic Lights

Did you know? An embedded system is a computer system with a dedicated function within a larger mechanical or electrical system, often with real-time computing constraints. A burglar alarm, an in-car cruise control system, a speedometer on a bike, a

3D Lego Bricks

In this blog post we will use Glowscript to create a 3D animation representing the various Lego bricks. Our aim is to recreate bricks by joining several cubes and cylinders (studs) together. We will then create a compound object to

Solar System

In this blog post we will use Glowscript to create a 3D animation representing the revolution of the Earth around the Sun, and of the Moon around the Earth. Earth Revolution First, let’s calculate the angle of rotation needed to

3D Tetris Shapes

In this blog post we will use Glowscript to create a 3D animation representing the various shapes used in a game of Tetris. Our aim is to recreate each shape by joining several cubes together. We will then create a

3D Molecules

In this blog post we will use Glowscript to create a 3D animation representing the molecule H2O. Our aim is to recreate the molecule by joining three spheres together (one sphere for each atom). We will then create a compound

3D Animation : Moon Phases

In this blog post we will use Glowscript to create a 3D animation representing how we perceive the moon from Earth throughout its cycle. Our aim is to represent a 3D sphere and to progressively change the direction of the

Coding Puzzles

Complete the following coding puzzles by drag and dropping the lines of codes in the correct order to recreate basic computer programs. Click on picture below to access the coding puzzles:

The Collatz Conjecture

The Collatz conjecture is a famous mathematical mystery that has yet to be solved. It is named after Lothar Collatz a German mathematician, who first proposed it in 1937. It is based on the following number sequence: Start with any