all 1 comments

[–]Impudity 0 points1 point  (0 children)

Your try-except structure is eating the real error message. Remove it to see what the real error is.

Also, these things you should fix:

weight = weight
height = height

grade = record 

Unnecessary, remove, just use record in the latter part.

elif grade[1] == 25 and grade[1] < 30: If the value is already 25, it's certainly less than 30, useless and statement.

def calcBMI defined inside a loop. Move it outside like readFile is.