Tag: List

How many sweets in the jar?

“Guess how many sweets are in the jar” is a fundraising game. A large see-through jar is filled with a carefully counted number of sweets. People then try to guess how many sweets are in the jar. Each contestant has

Pascal Triangle

In mathematics, one of the most interesting number patterns is Pascal’s Triangle. It is named after Blaise Pascal (1623 – 1662), a famous French Mathematician and Philosopher. To build a Pascal Triangle we start with a “1” at the top.

Defragmentation Algorithm

File Allocation Table (FAT System) A file allocation table (FAT) is a table that an operating system maintains on a hard disk that provides a map of the clusters (the basic units of logical storage on a hard disk) that

Cinema Booking Challenge

A cinema has created a booking system for their main theatre which consists of 48 seats, organised in 6 rows of 8 seats. To store information as to whether a seat is booked or available, the program uses a 2-dimensional

Top 10 Challenge

In this challenge, you will create a computer program to ask the end-user to try to guess the top 10 largest countries per area. To do so you will use a list in Python, containing the top 10 countries as

Planets Top Trumps

For this challenge we will create a variant of the game of Top Trumps using 9 cards, one for each of planet of our Solar System. We will store all the cards and data about the planets in a list

Astronomy Challenge

What is a constellation? In astronomy a constellation is a grouping of stars on the celestial sphere perceived as a figure or design. There are 88 recognized constellations and each of these have been named after characters from classical Greek

Fireworks Display

Coding is an Art Let’s first whatch this video clip which shows how a computer program can be used to create a large scale, live and interactive fireworks display: Fireworks Code Inspired by this application of computer science, we have

Quote of the Day

Learning Objectives By completing this challenge you will learn how data can be stored using lists. You will store a series of quotes in a list and append new quotes to your list. You will also find out how to

Rainbow Challenge

In this challenge we are going to use our coding skills to create some nice colour patterns. We will first look at the code given to create a rainbow effect to understand how it works. We will then adapt this