Python - parsing nested information and provide it in proper format from log file

Jay T jt11378 at gmail.com
Thu Feb 19 21:42:30 EST 2015


 have some log file which has nested data which i want to filter and provide specific for student with total counts

Here is my log file sample: 
Student name is ABC 
Student age is 12 
student was late 
student was late 
student was late 
Student name is DEF 
student age is 13 
student was late 
student was late

i want to parse and show data as Student name, student age , number of counts how many times student was late e:g 
Name Age TotalCount 
ABC 12   3 
DEF 13    2

Please help me with solution that will be really grateful.

thanks, Jt



More information about the Python-list mailing list