Use Python to calculate the population growth of Istanbul and print out a short report. Codecademy practice exercise.
The description of the excercise is: You work at the UN in urban planning and are interested in tracking population growth across major metropolitan regions. You are hoping that by looking at historical population numbers that you can predict future growth and help your team make decisions about resourcing.
The purpose of the project is just personal learning. I may revisit this code to find different solutions or to apply it under other context.
First there are some scripts that calculate some of the variables (The stuff under "Print initial scripts division") . Then these calculations are included into function population_growth which prints the calculations from scripts and return the growth percentage. Then some of the data is added to a string report to make it more readable.
- The report is not getting the years from variables. Probably I need to add the years as part of pop_2017 so that year and population are set together in a list or dictionary.
- I would like to return more variables on the function. Right now it only prints different calculations and return just the annual growth.
- Python 3
NA - It's only coding examples, there's no setup.
Project is: technically finished, but I want to do some improve it - may come back and improve it, or not.
Based on Codecademy's Visualize Data with Python course excercise