First let’s have a look at the following two webpages…
In this challenge we are going to write our own Python scripts to generate live metrics.
Let’s look at our first fact:
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.
Update the code above to create “live metrics” from the following facts:
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.
It is currently growing at a rate of around 1.05 % 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.