Educative

Concern about Solution Review: Find Mean and Median

I’m slightly concerned about the solution on this particular exercise. It looks like the “Median” code given only works for the file given, and would fail if the number of items in the list was even (instead of the given odd number of items).
I don’t see a catch in there for an even number of items, and it’s a bit misleading to give this as a result when the code block wouldn’t actually be useful in another situation. Most of the other solution checks actually had multiple inputs to check for other types of inputs, and even those that didn’t still expected you to write an actual functional function, as opposed to one that just applies to get the output you need on the limited info (otherwise we’d just hard-code them, right?).