From 4a11b015203426e803f66e6ad11d1da1477b0dc6 Mon Sep 17 00:00:00 2001 From: kjg Date: Wed, 20 May 2020 21:31:00 +0900 Subject: [PATCH] [Python #2] create e9.py --- kjg/python-the-hard-way/e9.py | 14 ++++++++++++++ kjg/python.org | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 kjg/python-the-hard-way/e9.py 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