Another exercise for the reader
Repeat the earlier example using the string formatting techniques.