$25
# 00 - 00-Optional homework
For this initial homework we will be working with a [dataset](https://github.com/fivethirtyeight/guns-data/blob/master/interactive_data.csv) available as a part of an interesting analysis of [gunshot deaths in the US](http://fivethirtyeight.com/features/gun-deaths/). The goal of this optional homework is to carefully go through the interactive visualization portrayed at the top of the aforementioned article, and use an IPython Notebook to reproduce the following claims made in the visualization:
- Nearly *two-thirds* of gun deaths are *suicides*.
- More than *85 percent* of suicide victims are *male*.
- Around *a third* of all gun deaths are *homicides*.
- Around *two-thirds* of homicide victims who are *males* in the *age-group of 15--34* are *black*.
- *Women* constitue only *15 percent* of the total *homicide* victims.
It's not necessary to generate visualizations for the results -- numbers should be more than enough to convince yourself that you
were able to reproduce the results of that article.
You can use this opportunity first of all to refresh your Python skills. If you are coming from another programming language
(especially a static PL like Java and C++), we recommend you to take a look at this presentation:
[Code Like a Pythonista: Idiomatic Python](http://www.omahapython.org/IdiomaticPython.html) -- it will teach
you how to write nice Python code, while at the same time getting you up to speed with the syntax.
Feel free to explore more advanced libraries (like [Pandas](http://pandas.pydata.org/)) if you really want, but keep in mind that you
should be able to reproduce the results with the Python Standard Library.
One advantage of using only the PSL is that once you will get knowledgeable about Pandas you will appreciate how much more concise
and readable your code will become :)
Credits to [Michele Catasta](https://github.com/pirroh), on whose material this version is based.