Tag: Learn Python the Hard Way Exercise 8

LPTHW - Exercise 8: Printing Printing

LPTHW - Exercise 8 Another copy one here but there were things to learn conceptually that haven't been brought up before. Look at how formatter is declared right at the beginning. Throughout the rest of the exercise we just add the relevant data and it'll print in the way set in the formatter variable. I think this is a subtly important concept to begin to learn, that you can setup the structure of how to do something and allow the data to come later, knowing it'll be output how you intended.

Read more...