I am attempting to read in individual elements of a file. In this example, the first element of each line is to be the key of a dictionary. The next five elements will be a corresponding value for said key in list form. 

```
max_points = [25, 25, 50, 25, 100]
assignments = ['hw ch 1', 'hw ch 2', 'quiz   ', 'hw ch 3', 'test']
students = {'#Max': max_points}

def load_records(students, filename):
    #loads student records from a file
    in_file = open(filename, "r")
    #run until break
    while True:
        #read line for each iteration
        in_line = in_file.readline()
        #ends while True
        if not in_line: break
        #deletes line read in
        in_line = in_line[:-1]
        #initialize grades list
        grades = [0]*len(students['#Max'])
        #set name and grades
        name, grades[0], grades[1], grades[2], grades[3], grades[4] = in_line.split()
        #add names and grades to dictionary
        students[name] = grades
        print name, students[name]

filename = 'C:\Python27\Python_prgms\Grades_list.txt'
print load_records(students, filename)

```

The method I have now is extremely caveman, and I would like to know what the more elegant, looping method would be. I have been looking for a while, but I can't seem to find the correct method of iteration. Help a brotha out.