Chapter 2 Exercises

Did anybody else have trouble with these without looking up the answer?

I was about 80 percent there on the fizzbuzz, but my words weren’t showing up at the correct numbers. The chess board I had no idea, but I imagine on the job or working on a project we’ll have access to Google.

Hi everyone, I’m not going to add my answers here, as they are very similar or identical to the other answers here.

I would like however to discuss the Chessboard exercise, which I think was a bit unclear in some areas. I didn’t manage to finish it before looking at the solution and even after looking it took a while to understand it.

My two beefs here are the fact the I don’t remember nested loops to have been explained prior to the exercise. I had to do some reading afterwards in order to find out that the inner loop goes to completion before the outer loop increments and restarts the inner loop.

The other aspect is that I don’t really understand how adding the x and y together and dividing by 2 tells us which version of the string to use. I’m sure there is something I’m missing here :smiley:

Would love to hear your thoughts on this :slight_smile: