diff --git a/kjg/python-the-hard-way/e9.py b/kjg/python-the-hard-way/e9.py new file mode 100644 index 0000000..b9be9f6 --- /dev/null +++ b/kjg/python-the-hard-way/e9.py @@ -0,0 +1,14 @@ +# Here's some new strange stuff, remember type it exactly + +days = "Mon Tue Wed Thu Fri Sat Sun" +months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug" + +print("Here are the days: ", days) +print("Here are the months: ", months) + +print(""" + There's something going on here. + with the three double-quotes. + We'll be able to type as much as we like. + Even 4 lines if we want, or 5 or 6 + """) diff --git a/kjg/python.org b/kjg/python.org index 370d8d3..13a8b64 100644 --- a/kjg/python.org +++ b/kjg/python.org @@ -69,3 +69,5 @@ Cheese Burger *** Python #2: **** ex8 learn about a more complicated formatting of a string. {} +**** ex9 +how to print for multiline or nextline