I posted one of my first answers here (Python), which got downvoted twice straight after I posted it, as it didn't actually loop the way the OP wanted it to. I thought that I should post it at that point, because if the OP wanted a quick answer, he could work the final part out himself. I then finished the post with the correct looping, but then it got a further down-vote.
I am not asking for loads of people to up/downvote the original question or my answer, but I would like to know if my answer is actually correct.