Sometimes it is useful as a grader to inspect how small changes to the code will affect the test output.
In the Code Console, if you type [command - K] and then type "Edit Code", then a dialog will pop up that allows you to edit the submission code and rerun tests. Code edits here are temporary and only for the purpose of testing and debugging.