Tag: Python Challenge

How Old is Your Cat?

In this challenge we are going to create a cat’s age convertor find out how old a cat is in “human years”. This is very useful to understand more about cats and the care they need and to find out

Acute, Obtuse and Reflex Angles

Angles are often used in Computer Science especially when creating 2D or 3D user interfaces. Angle measurements are given in either radians or degrees. In this blog post we will use degrees. As the angle increase, the name of the

Happy Birthday!

For this challenge we are going to write a Python program which will ask the end-user to enter their date of birth in the following format: dd/mm/yyyy. The program will then calculate and display the following information: The age of

Marathon Time Calculator

In this challenge you are going to write a Python script to help a marathoner predict the overall time they can complete a Marathon in (42km). This estimation will be based on the runner’s pace which is the time they

My Library

For this challenge you will work for the librarian who needs a computer program to help pupils find out where books can be found in the library. The library contains nine bookshleves labelled from A to I. Each bookshelf specialises

Limit 33

“Limit 33” is a simple game of adding a series of random numbers to a running total. The player’s aim it to reach a total as close as possible to 33 without taking this total over 33. Rules of the

12-hour clock

Did You Know? The 12-hour clock is a time convention in which the 24 hours of the day are divided into two periods: a.m. (from the Latin ante meridiem, meaning “before midday”) and p.m. (post meridiem, “after midday”). Each period

Le Tour de France

Learning Objectives By completing this challenge we are learning how to open and extract data from a text file, reading the file line by line. We will then use our program to make some calculations such as calculating the total

London 2012

Learning Objectives In this challenge we are going to investigate methods that can be used to: Read and extract data from a text file, Sort this data in ascending or descending order, Display this sorted data on screen. Context We

Calculating Pi using a Python script

Did you know? Pi (π) is one of the most important and fascinating numbers in mathematics. Roughly 3.14, it is a constant that is used to calculate the circumference of a circle from that circle’s radius or diameter. Pi is