Tag: Python Challenge

Lightning Distance Calculator

Have you ever seen a lightning flash or heard the thunder of lightning and wondered how close you were from the ligthning strike? Have you noticed that there is always a delay between the flash of light and the clap

Fahrenheit to Celsius Converter

Degree Fahrenheit (°F) and Degree Celsius (°C) are the main two units to measure temperature. The Fahrenheit scale is used mainly in the USA whereas other countries tend to use the Celsius scale. It is possible to convert a temperature

Fraction Simplifier

This challenge consists of writing a program that asks the end-user to enter a fraction (numerator and denominator) and output the matching reduced fraction when the fraction can be reduced. To see what this program should do in action you

Area Calculator

For this challenge we are going to use a Python script to calculate the area in square meters of two different flats. To do so we will write a computer program that will add up all the areas of each

Mastermind Challenge

Have you ever played the board game “Mastermind”? If you are not too sure about the rules of this game, you should first check this page. For this challenge we are going to create this game of mastermind where the

My mp3 playlist

Learning Objectives In this challenge we are going to focus on accessing a text file in Python to: Read the content of the file line by line, Append data at the end of the file, Write into a new text

The Gruffalo

This challenge is inspired from Julia Donaldson and Alex Sheffler’s children book: “The Gruffalo”. In this story a little mouse describes a ferocious animal/monster called a “Gruffalo” to scare other dangerous animals (fox, snake, owl) she encounters while taking a

Scrabble Challenge

This challenge consists of creating a computer program that displays a random selection of 7 letters to the end-user. Each letter is given a value based on the values used in the game of Scrabble. The user is then asked

Battleship Challenge

For this challenge we are not going to recreate a full battleship game. Instead we are going to focus on randomly placing the ships on the grid using an algorithm. The code given below uses Python Turtle to draw the

The YOLO Challenge

The YOLO challenge consists of creating an acronym generator: a program that prompts the user to enter an expression or a sentence (e.g. “You only live once!”) and in return gives the acronym matching the user input (e.g. “YOLO”) Learning