From 9c8e7d9045c9e2084afc8505c194a71e0b14f4cf Mon Sep 17 00:00:00 2001 From: kjg Date: Mon, 18 May 2020 23:35:46 +0900 Subject: [PATCH] [Python #1] create e7.py --- kjg/python-the-hard-way/e7.py | 21 +++++++++++++++++++++ kjg/python.org | 9 ++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 kjg/python-the-hard-way/e7.py diff --git a/kjg/python-the-hard-way/e7.py b/kjg/python-the-hard-way/e7.py new file mode 100644 index 0000000..b050d14 --- /dev/null +++ b/kjg/python-the-hard-way/e7.py @@ -0,0 +1,21 @@ +print("Mary had a little lamb.") +print("Its fleece was white as {}.".format('snow')) +print("And everywhere that Mary went.") +print("." * 10) # what'd that do? + +end1 = "C" +end2 = "h" +end3 = "e" +end4 = "e" +end5 = "s" +end6 = "e" +end7 = "B" +end8 = "u" +end9 = "r" +end10 = "g" +end11 = "e" +end12 = "r" + +# watch end = ' ' at the end. try removing it to see what happens +print(end1 + end2 + end3 + end4 + end5 + end6, end=' ') +print(end7 + end8 + end9 + end10 + end11 + end12) diff --git a/kjg/python.org b/kjg/python.org index 7e14ff7..9cada1d 100644 --- a/kjg/python.org +++ b/kjg/python.org @@ -1,4 +1,5 @@ -*python + +* learning python *** Python #1: **** ex0 @@ -59,3 +60,9 @@ I said: There are 10 types of people. I also said: 'Those who know binary and those who don't.' Isn't that joke so funny?! False This is the left side of...a string with a right side. +**** ex7 +Mary had a little lamb. +Its fleece was white as snow. +And everywhere that Mary went. +.......... +Cheese Burger