Exercise 9: Printing, Printing, Printing
By now you should realize the pattern for this book is to use more than one exercise to teach you something new. I start with code that you might not understand, then more exercises explain the concept. If you don't understand something now, you will later as you complete more exercises. Write down what you don't understand, and keep going.
What You Should See
Study Drills
Repeat the Study Drill from Exercise 7.
Common Student Questions
- What if I wanted to start the months on a new line?
You simply start the string with \n like this:
"\nJan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
- Is it bad that my errors are always spelling mistakes?
- Most programming errors in the beginning (and even later) are simple spelling mistakes, typos, or getting simple things out of order.