Tag: Python

The window cleaner’s quote

A window cleaner uses the following pricing policy to calculate how much to charge for cleaning all the windows of his customer’s dwelling. This pricing policy is based on the number of windows that need to be cleaned and works

Gradient Animation

In this challenge we are going to create some animated gradients by progressively changing the colour of the screen from one colour (e.g. red) to another (e.g. yellow). RGB Colour Codes Did you know that every colour on the screen

Penalty Shootout

For this challenge you are going to write a computer program where the user tries to score a goal against the computer. The user will be asked where do they want to shoot and will have to choose one of

Timelapse Video Recording Using a Rapberry Pi

Getting Ready… For this challenge you will need: A Raspberry Pi with Python 2 installed, A PiCamera. Follow the steps described on the following pages to make sure you have plugged the camera in your raspberry pi and that you

Daily Calorie Intake

Did You Know?Keeping a healthy lifestyle consists of adapting our daily food intake with our level of physical activities. The calories we intake (by eating food) has to roughly match the calories we burn throughout the day. Your Challenge For

Find the monster!

Will you dare open one of the three doors above. (Click on a door to open or close it.) Did you come across any monster? If not carry on opening doors till you find a monster! Your Challenge Check the

Google Translate

Have you ever used Google Translate to translate some text or a full webpage? For this challenge we are going to try to write a Python script to translate from English to French. However we are only going to translate

Live Metrics

First let’s have a look at the following two webpages… http://www.internetlivestats.com/ http://www.worldometers.info/ Our Challenge In this challenge we are going to write our own Python scripts to generate live metrics. Let’s look at our first fact: Every second, on average

Quote of the Day

Learning Objectives By completing this challenge you will learn how data can be stored using lists. You will store a series of quotes in a list and append new quotes to your list. You will also find out how to

For Sale

Learning Objectives In this challenge we are learning how to use variables to store the characteristics of your house. Some of our variables will be used to store text (string) such as the street name of your house. Some variables