Perhaps this has already been asked and answered, and if so, feel free to kick me to the curb, my fellow udacians. :-)
That said, if the homework question says "return a number" as the solution, but in order to verify that a number is returned I have to print it, will my homework answer be marked incorrect if I leave the final print statement in the code that I submit to the autograder?
In other words, I understand that print statements scattered throughout the code for debugging can cause code to be marked incorrect, but how about just a single print statement at the end of the code that reveals the result of the function with its inputs?
thanks -- be kind, please
The question has been closed for the following reason "The question is answered, right answer was accepted" by katarina_velika 14 Mar '12, 13:53
You could just comment out that line before you submit. The autograder probably has it's own print statements, and if it sees output that it did not request then it could get confused.
answered 13 Mar '12, 10:56