Originally Posted by
laserlight
You make a good point, but our homework policy mainly forbids people asking for others to do their homework for them, and consequently we discourage contributors from doing people's homework for them too. Hence, there's a fair bit of leeway in helping as long as we aren't handing out code that can be used as-is or other answers that don't require the help seeker to adapt/apply the help given for themselves. Both flp1969's reply and Malcolm McLean's reply thus fall within this acceptable range of answers: they're just somewhat more obvious hints than yours (and maybe not for flp1969's case: it assumes Ptolemaic knows Python, but the poor indentation means that a Python version of Ptolemaic's code wouldn't even be syntactically correct).