Skip to content

Comment on PythonMonk – Learn Python in the browser

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.