title: Categorise the number of values in a list
body: <p>I have the list [5,15,25,27,30,39,45,50,55]</p>
  <p>How do I code the categorisation of the values in a list, where the categories are groups of roughly 10 ? such that I get the following result. I have absolutely no clue where to start, and I am only just learning to code.</p>
  <p>0 - 9   =1<br>
  10 - 19 =1<br>
  20 - 29 =2<br>
  30 - 39 =2<br>
  40 - 49 =1<br>
  50 - 59 =2<br></p>
  <p>thankyou</p>
  <p>(I did think of something like
  if list[1] &gt; 0 and &lt; 10 make Group[1] == 1
  list[2] &gt; 0 and &lt; 10 make Group[1] == 2
  but this was going to generate LOADS of bulky code )</p>