Live Metrics

First let’s have a look at the following two webpages…

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 6,000 tweets are tweeted on Twitter.

And check the Python script to make transform this fact into a “live metrics program”.

Should you have an issue running this code in Internet Explorer due to the line 2 instruction “import time”, try to display this page using Google Chrome instead.

Task #1:


Update the code below to create “live metrics” from the following facts:

On average 2,430,310 emails are sent worldwide every second.
Google now processes over 40,000 search queries every second on average.

Task #2:

Around 60 million cars are produced in a single year worldwide.

To create a live metrics program based on this fact you will first need to use Python to calculate the number of cars produced in one second.

Task #3:

The current world population is estimated at: 7,370,000,000 human beings.
It is currently growing at a rate of around 1.13 % per year.

To create a live metrics program based on this fact you will first need to use Python to calculate the population growth (in human beings) in one second.

Share Button
Posted in Computer Science, Python - Intermediate, Python Challenges Tagged with: , ,

Our Latest Book