Almost rightLesson 021 min
It works for the example and breaks on an empty list
A function that averages a list works for two, four and six, so it gets approved. Then a new user has no scores. The function adds nothing, divides by a length of zero, and Python stops with a division by zero error. The code was only tried with the input its author imagined. The fix starts with deciding what the average of nothing should be.
Remember
Try a function with empty input and one item before trusting it.
