I am attempting to parse a file with the following format
1999
I
Willem Jan van Steen 9859 77
Guillaume Kielmann 5264 77
Guillaume Bos 8200 6
(the file is much longer, and is seperated by academic year (as 1999) and different studies(as 'I'). The only thing i have to work with is the last number (like 77, 77, 6) This number is a percentage. In final goal is to make a BarChart consisting of 10 bars, the bar charts consist of the amound(sum) of times a percentage from the file falls into the range of the Bar Chart (say a bar chart from 70 to 80 % --> then if the above input is the whole file the sum would be 2, and the barchart will be of height 2. But my first problem is that i dont know how to parse the input.. I was thinking that python should read the lines and then from the index (so making a range) on which the percentage number starts to 'do somethinh' with the numbers (--> look in which range of bar chart they fall and then make a loop for the sum of how many times a percentage falls in that Bar Chart..)
Hope someone can help me!