Code Monkey home page Code Monkey logo

calculating_population_change_py_3's Introduction

calculating_population_change_Py_3

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.

General info

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.

Description

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.

To-do list:

  • 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.

Table of contents

Screenshots

Example screenshot

Technologies

  • Python 3

Setup

NA - It's only coding examples, there's no setup.

Status

Project is: technically finished, but I want to do some improve it - may come back and improve it, or not.

References

Based on Codecademy's Visualize Data with Python course excercise

calculating_population_change_py_3's People

Contributors

candytale55 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.