Did you see the "Answers to Exercises" chapter at the end of the book? It has all the expected input, or at least one possible version that will work.
I understand your frustration that the problem with the purple cylinder took so long to solve and then it was "just a silly bracket". But getting better at spotting these kinds of issues is a large part of learning to program in most languages. So even with the printed solution at the end of the book, you still have to read and compare your code and the solution carefully until you get a better grasp of these details. (But it will happen faster than you think, don't worry.)
And if you really do get stuck, just post here on the Community forum with that concrete problem. We don't bite anyone's head off unless they're clearly and blatantly trying to get us to do their calculus homework. ;)
Just out of curiosity, can you point to a learning resource for programming (in any language) that you think is didactically better suited for beginners? I have no background in education, so I feel I can't judge teaching material particularly well unless I'm currently trying to learn from it... I'd be interested to get that sort of input, because the Elementary Introduction looks pretty good to me, with the caveat that I already know the material.
Edit: Just in case you haven't seen it yet, I thought I'd drop the ultimate collection of reference links here as well so that you can hunt for other resources if you want to.