Uploading health.csv homework

You could simplify this a bit, something like:
maleages = [float(i[2]) for i in x if i[1] == 'M']