The purpose of this Python challenge is to demonstrate the use of a backtracking algorithm to solve a Sudoku puzzle. Did You Know? The objective of a Sudoku puzzle is to fill a 9×9 grid with digits so that each…
The purpose of this Python challenge is to demonstrate the use of a backtracking algorithm to solve a Magic Square puzzle. Did You Know? A 3×3 magic square is an arrangement of the numbers from 1 to 9 in a…
Learning Objectives? In this set of Python challenges we will investigate the use of two data structures used in programming to represent data: We will use an array/list to represent a food chain. We will use a graph to represent…
The purpose of this challenge is to use a Python program to demonstrate how frame-based animations can be implemented. For this challenge we are using the Processing.py library. The code below will run the setup() procedure once, when the program…
In this challenge we will use Python Turtle to draw text on screen and customise the appearance of our text. To do so we have created our own font as a Python dictionary. Each letter of the alphabet is represented…
For these challenges we will produce on screen artwork by randomly positioning confetti on different shapes of canvas. Our code will use Python Turtle to draw the canvas and the confetti. Square Canvas Check how the code provided below randomly…
In this Python challenge we will write a script to randomly draw confetti on a canvas while ensuring that none of the confetti overlap with each other! Problem Decomposition In this challenge we will need to solve the following problems:…
Did You Know?Everything that is stored on a computer is stored as binary code. Binary code is made of bits (0 or 1). We often use Bytes to store data. A Byte is made of eight bits and can be…
Crack the Codes! (open full screen) In this set of challenges, you will analyse some pseudocode to try to get the pass codes required to move on to the next levels. Levels will get more and more complex as your…
Crack the Codes! (open full screen) In this set of challenges, you will analyse some pseudocode to try to get the pass codes required to move on to the next levels. Levels will get more and more complex as your…