Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Nerdalize CO2 calculator

Nerdalize is building a different cloud. Rather than putting thousands of servers into a datacenter, we're distributing them over homes. There, homeowners make good use of the residual heat: to heat their home in winter and their shower water in summer.

This Python script calculates the amount of CO2 saved per year by Nerdalize. It takes an amount of households as input. The script outputs two things:

  1. Total CO2 savings in kilograms and how many traveling kilometers this corresponds to for different ways of transportation.
  2. A bar chart showing how many airplane trips you could make, based on the different trips specified in input file flights.csv.

Usage

python co2_calc.py <no-of-households> [output-folder]