Using a oneliner seems to be very pythonic, but may be hard to comprehend for mere mortals. So here is an alternative with comments to help you:
# each line has these space separated data
# first last ID credit-hours quality-points
raw_data = ''' Max Medium 12345678 58 152
Jane Johnson 87654321 78 201
Bill Bupkiss 23456789 29 29
Nate Newby 98765432 0 0
Harold Humphries 11223344 43 160
Carol Cramer 22334455 102 400
Alvin Adams 33445566 67 120
Fred Frederick 44556677 81 250
Phillip Parker 55667788 44 168
Sam Spade 24681357 16 30 '''
fname = "lab11.txt"
# write the test file out
with open(fname, "w") as fout:
fout.write(raw_data)
# read the test file back in and process
with open(fname, "r") as fin:
mylist = []
for line in fin:
temp_list = line.split()
# convert credit-hours and quality-points to integers
# these are at index 3 and 4 in the list
temp_list[3] = int(temp_list[3])
temp_list[4] = int(temp_list[4])
mylist.append(temp_list)
# show result
import pprint
pprint.pprint(mylist)
'''
[['Max', 'Medium', '12345678', 58, 152],
['Jane', 'Johnson', '87654321', 78, 201],
['Bill', 'Bupkiss', '23456789', 29, 29],
['Nate', 'Newby', '98765432', 0, 0],
['Harold', 'Humphries', '11223344', 43, 160],
['Carol', 'Cramer', '22334455', 102, 400],
['Alvin', 'Adams', '33445566', 67, 120],
['Fred', 'Frederick', '44556677', 81, 250],
['Phillip', 'Parker', '55667788', 44, 168],
['Sam', 'Spade', '24681357', 16, 30]]
'''