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

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;

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

Thanks! That took care of the issue.