More Printing
Well, with the same Python shell we used in the last section, let's print some more things.
As Python processes code line by line, the output comes out line by line. Think you can put them all together and get one big output? Of course you can! Let's try:
Well that's not exactly what we expected, we got this for output
Let's format it so that it'll print out more like how we expect poems to be written.
The output should be like this:
You would have noticed that instead of a space we use \n
. That's a newline character, it's used in strings to output to, unsuprisinly, a new line.
Last updated