Trouble with Chunky Monkey: I seem to be getting the correct output, but it says I'm not

Trouble with Chunky Monkey: I seem to be getting the correct output, but it says I'm not
0.0 0

#1

Is anybody else running into this issue? This is my code, the test and the result, which appears to be correct but is getting an error message;


#2

your variables need to be inside the function – this is the case for all the challenges


#3

Thanks! That took care of the issue.