Curling is a sport in which players slide stones on a sheet of ice towards a target area which is segmented into four concentric circles. Two teams, each with four players, take turns sliding heavy, polished granite stones, also called…
The following diagram explains how a dart is allocated a score in a game of darts. To calculate the score of an arrow based on its (x,y) coordinates we will use two calculations: The distance of the arrow from the…
In Mathematics, the factorial of n is denoted by n! and calculated by the product of integer numbers from 1 to n. For instance: In this challenge you will write a Python program that asks the user to enter a…
Portrait of Henry VIII There have been 66 monarchs of England and Britain spread over a period of 1500 years. For this Python challenge you will use a text file listing all of these monarchs in chronological order. You will…
In this challenge we will use file handling techniques to read through and access the content of different text files. We have saved three recipes for the following three magic potions using one text file per recipe: Invisibility Potion: A…
When your browser displays a webpage on screen it uses 3 different programming languages called HTML, CSS and JavaScript. We call the combination of these three languages “client-side web technologies”. Each of the three language has its own syntax and…
When your browser displays a webpage on screen it uses 3 different programming languages called HTML, CSS and JavaScript. We call the combination of these three languages “client-side web technologies”. Each of the three language has its own syntax and…
Reaction Time Tester Look at the code provided below. It uses the time library to store the current time (as a number of seconds) at different lines of the code. The code is executed very quickly, normally in just a…
Reaction Time Tester Look at the code provided below. It uses the time library to store the current time (as a number of seconds) at different lines of the code. The code is executed very quickly, normally in just a…
Computers hardware consists of all the components that you will find inside the computer (Motherboard, CPU, RAM, graphic card, sound card, network card, etc.) as well as all the peripherals/devices than you can plug to a computer. Peripherals are often…