Tag: Dictionary

Dice Score Frequency Analysis


In this challenge we will use a Python algorithm to perform a frequency analysis of the score obtained when throwing a set of two dice. Frequency analysis using 1 dice Let’s consider a single 6-sided dice. When using single dice,

Wind Speed Conversions and the Beaufort Scale


Before going to sea, any sailor should check the marine weather forecast to check on different aspects of the weather including the direction and strength of the wind (wind speed). The wind speed can be measured using different units such

Chemical Elements Quiz

Using a Dictionary: Chemical Element Quiz

The aim of this challenge is to create a quiz based on the list of chemical elements of the periodic table based on the following requirements: The quiz will include 10 questions. Each question will display the name of an

Airport Code Lookup Check


In this challenge we will implement a small Python program to: Ask the user to enter a 3-letter airport code (e.g. LHR) for one of the top 20 busiest airports in the world. Output the full name of the airport

Layer Cake using Python Turtle


In this challenge we will use Python Turtle to create and draw a layer cake. The code provided at the bottom of this blog post is using a few computing concepts such as: A list to store the parameters of