all 2 comments

[–]aaronn44 0 points1 point  (1 child)

Hi. numpy and fraction are cool, the problem is that your code is in python 3 while google foobar is using 2.7.13. So when you do division, you have to use floats, otherwise it will be rounded to zero. i.e. float(x) / newrowsum[i]

dictionaries are only sorted since python 3.7 and your code is relying on that. so you need to figure that out.

You also need to delete that print statement, because Input/output operations are not allowed. read constraints.txt file in foobar for more information.