Tag: iteration

Calculating Pi using a Python script

Did you know? Pi (π) is one of the most important and fascinating numbers in mathematics. Roughly 3.14, it is a constant that is used to calculate the circumference of a circle from that circle’s radius or diameter. Pi is

Year 2050

Have you got any idea how old you will be in 2050? By completing the following challenges we will write computer algorithms for the computer to tell us more about our age in the future! Getting Started First you will

Lottery Numbers

In this challenge we are going to write a Python program that automatically generates six random numbers (from 1 to 50) and display them on the screen, sorted in ascending order. The program will need to make sure that each

Python Basics

Python Cheat Sheet

Check the following Python instructions. These are all you need to know to start creating your first Python scripts! You can also check our more advanced Python Helpsheet:

Blackjack Challenge

In this challenge you are going to create a blackjack game for one player. The computer will be the dealer. Rules of the game Source: wikipedia. “Blackjack, also known as twenty-one, is the most widely played casino banking game in

The legend of the chessboard

The story tells us that long long ago the great Sultan of India loved to play games. As he started to get bored of the games that were present at the time he asked a wise man who lived in

Fraction Simplifier

This challenge consists of writing a program that asks the end-user to enter a fraction (numerator and denominator) and output the matching reduced fraction when the fraction can be reduced. To see what this program should do in action you

Mastermind Challenge

Have you ever played the board game “Mastermind”? If you are not too sure about the rules of this game, you should first check this page. For this challenge we are going to create this game of mastermind where the

Fizz-Buzz Game

Fizz buzz is a group word game for children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word “fizz”, and any number divisible by five with the word “buzz”.

Let it snow…

Check this work from year 8 working on the snowflake challenge. Click on each snowflake to see the source code. By Chloe By Phil By Poojan By Lucy By Ben By Thomas By Charlie By Emily By Jude By Katie