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 10,260 tweets are tweeted on Twitter.
And check the Python script to make transform this fact into a “live metrics program”.
Task #1:
Update the code above to create “live metrics” from the following facts:
On average 1,200 photos are posted on Instagram every second.
On average 98,000 youtube videos are viewed every second.
Google now processes over 107,000 search queries every second on average.
Task #2:
Around 80 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,985,000,000 human beings.
It is currently growing at a rate of around 1.05 % per year.
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.
![unlock-access](/wp/wp-content/uploads/unlock-access.png)
Solution...
The solution for this challenge is available to full members!Find out how to become a member:
➤ Members' Area