Changed old %-format to new-style format.

Changed the old style % formatting to the new style `.format()` that is actually taught in the slides.

This is to reduce any confusion as to the purpose of these lines of code, as my students asked me why these lines looked the way they did.