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 of lists, equivalent to a two-dimensional array, called planets. The “array” will contain 9 rows (from 0 to 8) and 5 columns (0 to 4) with the following columns/fields:
- Name of the planet,
- Distance from the Sun (in million km),
- Size (Diameter) in km,
- Orbital Period in days,
- Number of Moons.
We will then be able to access a single piece of data using indexes as follows:

Game Rules
We will write a python program based on the planets array (list of lists) which:
- Randomly picks a planet/card from the deck and display all its data on screen,
- Randomly picks a planet for the computer, without displaying it on the screen,
- Asks the end-user which criteria to compare for this round: (1-Distance from the Sun, 2-Size, 3-Orbital Period,4-Number of Moons),
- Compares both cards using the chosen criteria,
- Tells the player whether they won, drew or lost,
- Gives the computer or the player points: 3pts for a win, 1pt for a draw,
- Displays both the computer and the player’s scores and repeats the whole process until the player or the computer reaches a score of 12 and hence win the game.
Since the establishment of the United States of America, in 1789, 45 people have served as president, the first one being George Washington.
us-presidents.csv

Let’s consider an online Bakery that specialises in selling Birthday Cakes online. The owner of the bakery has estimated all the costs involved and grouped them into two categories:
We have listed all the costs of our online bakery, both fixed and variable into a text file.
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 rocks, across the ice curling sheet towards the house, a circular target marked on the ice. Each team has eight stones. The purpose is to accumulate the highest score for a game; points are scored for the stones resting closest to the centre of the house at the conclusion of each end, which is completed when both teams have thrown all of their stones. A game usually consists of eight or ten ends.









In this challenge we will use file handling techniques to read through and access the content of different text files.
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”.

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”.




