Tag: Learn Python Exercise 9

LPTHW - Exercise 9: Printing, Printing, Printing

LPTHW - Exercise 9 Simple copy and print here but a few things we haven't seen before - namely those \n things in the months variable string. When running the script the output on the months variable are displayed on separate lines, so those \n things obviously indicate a newline/carriage return be inserted. I guess this is a way to get new lines on a string enclosed by single or double quotes, i.

Read more...