From 17bce062d091f253cb697ed7e91810ceb1c9d911 Mon Sep 17 00:00:00 2001 From: freakoutbug <54635035+freakoutbug@users.noreply.github.com> Date: Tue, 17 Sep 2019 21:59:26 +0800 Subject: [PATCH 1/3] 1901100357-homework 1001S02E01_helloworld --- exercises/1901100357/1001S02E01_helloworld.txt | 1 + exercises/1901100357/README.md | 0 2 files changed, 1 insertion(+) create mode 100644 exercises/1901100357/1001S02E01_helloworld.txt create mode 100644 exercises/1901100357/README.md diff --git a/exercises/1901100357/1001S02E01_helloworld.txt b/exercises/1901100357/1001S02E01_helloworld.txt new file mode 100644 index 000000000..76a760a36 --- /dev/null +++ b/exercises/1901100357/1001S02E01_helloworld.txt @@ -0,0 +1 @@ +HOMEWORK 5.5 \ No newline at end of file diff --git a/exercises/1901100357/README.md b/exercises/1901100357/README.md new file mode 100644 index 000000000..e69de29bb From 2ffbfc399c35470b87e3309ef2aad32c0fe88982 Mon Sep 17 00:00:00 2001 From: freakoutbug <54635035+freakoutbug@users.noreply.github.com> Date: Wed, 18 Sep 2019 23:06:49 +0800 Subject: [PATCH 2/3] Create 1001S02E02_hello_python.py --- exercises/1901100357/1001S02E02_hello_python.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 exercises/1901100357/1001S02E02_hello_python.py diff --git a/exercises/1901100357/1001S02E02_hello_python.py b/exercises/1901100357/1001S02E02_hello_python.py new file mode 100644 index 000000000..599863043 --- /dev/null +++ b/exercises/1901100357/1001S02E02_hello_python.py @@ -0,0 +1 @@ +print ("Hello World!") From 28bd3597b94c3e9ae9ad5f8b2b194a447f96ca5a Mon Sep 17 00:00:00 2001 From: freakoutbug <54635035+freakoutbug@users.noreply.github.com> Date: Fri, 20 Sep 2019 01:52:38 +0800 Subject: [PATCH 3/3] Create 1001S02E03_calculator.py --- exercises/1901100357/1001S02E03_calculator.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 exercises/1901100357/1001S02E03_calculator.py diff --git a/exercises/1901100357/1001S02E03_calculator.py b/exercises/1901100357/1001S02E03_calculator.py new file mode 100644 index 000000000..f7909212d --- /dev/null +++ b/exercises/1901100357/1001S02E03_calculator.py @@ -0,0 +1,28 @@ +def add(x, y): + print("adding {} and {}".format(x, y)) + return x + y + + +def subtract(x, y): + print("subtracting {} and {}".format(x, y)) + return x - y + + +def multipy(x, y): + print("multipying {} and {}".format(x, y)) + return x * y + + +def divide(x, y): + print("dividing {} and {}".format(x, y)) + return x / y + +a = add(1, 2) +s = subtract(2, 3) +m = multipy(3, 4) +d = divide(18, 3) + +print(a) +print(s) +print(m) +print(d) \ No newline at end of file