In my for loop, my code generates a list like this one:
list([0.0,0.0]/sum([0.0,0.0]))
The loop generates all sort of other number vectors but
You should use the math module.
>>> import math >>> math.isnan(item)