Comment on PythonMonk – Learn Python in the browserComments−cglace13y"Your turn now - go on and change the following code to compute the sum of the numbers 1 through 5."If you input 15 and submit, it says the answer is correct. Do all online code courses just check for the retured value?How do these services deal with someone running sum(i for i in xrange(1000000000000000000))?−wodow13yBut of course that is a valid piece of code!"15" completely matches the specification you give.
Comments
"Your turn now - go on and change the following code to compute the sum of the numbers 1 through 5."
If you input 15 and submit, it says the answer is correct. Do all online code courses just check for the retured value?
How do these services deal with someone running sum(i for i in xrange(1000000000000000000))?
But of course that is a valid piece of code!
"15" completely matches the specification you give.