Python List with ranges
<p>Let's say I have a list with ages(that represent the life expectancy a country):</p>

<pre><code>ages= ['70.37668898', '72.15779044', '73.25278702', '72.18979793', '80.73137673','55.43124818' '54.16265064', '54.16540964', ...]
</code></pre>

<p>Now I have ranges of life expectancy that go up by two(range 48-100), something like this:</p>

<pre><code>48-50,50-52, ...., 98-100
</code></pre>

<p>I would like to create a new list that has a list for every age in ages.
The inner list contains a 1 if the given age is inside a life expectancy range and a 0 if it's not.</p>

<p>So the result would look something like this:</p>

<p>Each inner list belongs to an age from ages</p>

<pre><code>[[0,0,0,0,1, ..., 0],[0,1,0,0,0, ..., 0],...] 
</code></pre>

<p>How can I accomplish this?</p>
