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…
Since the establishment of the United States of America, in 1789, 45 people have served as president, the first one being George Washington. For this challenge you will use a text file listing all of these US presidents in chronological…
In Business or Economics the Break Even Point (BEP) is the point at which the total of fixed and variable costs of a business becomes equal to its total revenue. At this point, a business neither earns any profit nor…
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…