From 7ff228ab2098972e0a270c4848fa4aad72610014 Mon Sep 17 00:00:00 2001 From: acse-wl4023 Date: Tue, 17 Oct 2023 11:19:59 +0100 Subject: [PATCH 1/2] add test1.txt --- test1.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test1.txt diff --git a/test1.txt b/test1.txt new file mode 100644 index 0000000..12563d0 --- /dev/null +++ b/test1.txt @@ -0,0 +1 @@ +a test \ No newline at end of file From 8baf89190257eebbf1fea0eb4513c11678d6b23f Mon Sep 17 00:00:00 2001 From: acse-wl4023 Date: Tue, 17 Oct 2023 11:35:51 +0100 Subject: [PATCH 2/2] modify the my_sum --- simple_functions/functions1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple_functions/functions1.py b/simple_functions/functions1.py index 8c63a4d..57bcd8e 100644 --- a/simple_functions/functions1.py +++ b/simple_functions/functions1.py @@ -5,5 +5,5 @@ def my_sum(iterable): tot = 0 for i in iterable: - tot += i + tot -= i return tot