Author: Administrator

The Retro Gaming Internet Café

A youth club has decided to transform their club into a Retro Gaming Internet Café for the week-end. Their aim is to let people join in and play online retro games such as Pong, Pacman or Space Invaders, on desktop

A Python game of Noughts and Crosses

In this blog post, we will focus on using a 2D array to create a 3×3 game of noughts and crosses. We will investigate the code using a step by step approach. You can follow the steps described below and

The World in 2050

Did you know that the world population increased from 1 billion in 1800 to around 8 billion today. And it’s still growing, even though the growth rate has declined from 2% per year around 50 years ago to approximatively 1%

Light Bulb Energy Rating Calculator

Replacing a light bulb may not be as straight forward as it used to be. Nowadays there are many different types of light bulbs to choose from, including incandescent bulbs, halogen bulbs, fluorescent bulbs and so many different types of

Digit Sum Algorithm

For this challenge, we are going to write a function to calculate the digit sum of a given number. The digit sum of a number corresponds to the sum of all the digits of this number. For instance the digit

The Uppercase Challenge

The aim of this challenge is to rewrite the upper() function that is used in Python to convert the case of a string to uppercase. This is how the upper() function works in Python: string = "Hello world!" upString =

Finding the Factors of… (LMC Challenge)

The aim of this challenge is to write a program using LMC to list all the factors of a given number. The program will: Ask the user to enter a positive number (e.g. 12) Display all the factors of this

The Fish and Chips Puzzle

To complete this puzzle, we first need to investigate the following lines of code: a = "chips" b = "fish" print(a + " and " + b) What would be the output of this code if you executed it? Your

Cryptography Challenge

Cryptography, or cryptology is the practice and study of techniques for secure communication. Cryptography relies on using more or less complex encryption algorithms to encode a readable message (plaintext) into a collection of characters (ciphertext) that is hard to decipher

Back to the Future – Time Machine

In this Python challenge, we are going to investigate how to manipulate dates in Python using the datetime library. The aim of this challenge is to write a piece of code to control the Time Machine (aka Flux Capacitor) found