One student has no grades — should average crash, return None, return 0.0, or stop the program dead?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
Here is the four-student roster from the video. Each entry is a name list followed by a grades list, and the last student has no grades at all.
test_grades = [[['peter', 'parker'], [80.0, 70.0, 85.0]], [['bruce', 'wayne'], [100.0, 80.0, 74.0]], [['captain', 'america'], [10.0, 10.0, 80.0]], [['deadpool', 'duh'], []]]
Index into test_grades and assign Captain America's grades list — the whole list of numbers — to cap_grades.