Homework class 6; health file

A list comprehension is more for building lists than printing lists. But, you could rewrite the code as follows:

for g in gender_info[1:]:
    print "\nAverage age for", g[0], "is", g[1]

It's a bit easier to read and avoids the use of range. I used gender_info[1:] to tell it to skip the first row. Also, note that you don't need extra spaces inside the quotation marks because when you use commas, Python automatically includes spaces.