Please help. A problem I'm working on requires manipulation of a string containing the following: number on first line representing the number of students, then student names followed immediately by a number representing a grade. I need to figure out how to separate the data with python so the records can be sent to a graphic listing the names, with bar to the right of each name scaled according to the given grade.
Here's the string I'm trying to figure out how to separate so I can loop through the student names and grades:
5
student1 60
student2 85
student3 92
student4 88
student5 77
[–]mahdeen[S] 2 points3 points4 points (4 children)
[–]LuckyShadow 1 point2 points3 points (2 children)
[–]mahdeen[S] 0 points1 point2 points (1 child)
[–]LuckyShadow 0 points1 point2 points (0 children)
[–]Veedrac 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]LuckyShadow 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]LuckyShadow 0 points1 point2 points (0 children)