From 45075b96b4336e46f4378551954fc0e8617fcf69 Mon Sep 17 00:00:00 2001 From: kjg Date: Fri, 22 May 2020 23:33:46 +0900 Subject: [PATCH] [Python #3] test ex22 --- kjg/python-the-hard-way/e3.py | 4 ++-- kjg/python-the-hard-way/new_file2.txt | 3 +++ kjg/python-the-hard-way/test.txt | 6 +++--- kjg/python.org | 2 ++ 4 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 kjg/python-the-hard-way/new_file2.txt diff --git a/kjg/python-the-hard-way/e3.py b/kjg/python-the-hard-way/e3.py index e7067be..f7e9ac9 100644 --- a/kjg/python-the-hard-way/e3.py +++ b/kjg/python-the-hard-way/e3.py @@ -5,11 +5,11 @@ print("Roosters", 100 - 25 * 3 % 4 ) print("Now I will count the eggs : ") -print(3 + 2 + 1 - 5 + 4 % 2 -1 / 4 + 6) +print(3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6) print("Is it true that 3 + 2 < 5 - 7?") -print(3 + 2 < 5 -7 ) +print(3 + 2 < 5 - 7 ) print("What is 3 + 2?", 3 + 2) print("What is 5 - 7?", 5 - 7) diff --git a/kjg/python-the-hard-way/new_file2.txt b/kjg/python-the-hard-way/new_file2.txt new file mode 100644 index 0000000..996a043 --- /dev/null +++ b/kjg/python-the-hard-way/new_file2.txt @@ -0,0 +1,3 @@ +test line1 +test line2 +test line3 diff --git a/kjg/python-the-hard-way/test.txt b/kjg/python-the-hard-way/test.txt index e97bf0c..996a043 100644 --- a/kjg/python-the-hard-way/test.txt +++ b/kjg/python-the-hard-way/test.txt @@ -1,3 +1,3 @@ -This is line 1 -This is line 2 -This is line 3 +test line1 +test line2 +test line3 diff --git a/kjg/python.org b/kjg/python.org index 48b693d..0656a8c 100644 --- a/kjg/python.org +++ b/kjg/python.org @@ -96,3 +96,5 @@ How to use function and variables How to use function with file **** ex21 How to use fucntion with return +**** ex22 +repeat from ex2 to ex21