summary refs log tree commit diff stats
path: root/python/code/2/1.py
diff options
context:
space:
mode:
authorSudipto Mallick <smlckz@termux-alpine>2024-01-13 09:28:10 +0530
committerSudipto Mallick <smlckz@termux-alpine>2024-01-13 09:28:10 +0530
commit8fb719f58f91d1f1f187a1db974682fb3736ee05 (patch)
tree506e070c7900cc5e3fb31000dbd1a39e95809c61 /python/code/2/1.py
parent53d75846cc95a3af5d90c01b5ef010818b4adcf7 (diff)
downloadzadania-8fb719f58f91d1f1f187a1db974682fb3736ee05.tar.gz
Changes to project structure of Python assignments
As was directed to remove assignments.
Diffstat (limited to 'python/code/2/1.py')
-rw-r--r--python/code/2/1.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/python/code/2/1.py b/python/code/2/1.py
deleted file mode 100644
index 7ccd78f..0000000
--- a/python/code/2/1.py
+++ /dev/null
@@ -1,27 +0,0 @@
-def gaussian_sum_even(numbers):
-    assert len(numbers) % 2 == 0
-    start_index, end_index = 0, len(numbers) - 1
-    sum = 0
-    while start_index < end_index:
-        print(numbers[start_index], '+', numbers[end_index])
-        sum += numbers[start_index] + numbers[end_index]
-        start_index += 1
-        end_index -= 1
-    print('Result:', sum)
-
-gaussian_sum_even(list(range(1, 7)))
-
-def gaussian_sum(numbers):
-    start_index, end_index = 0, len(numbers) - 1
-    sum = 0
-    while start_index < end_index:
-        print(numbers[start_index], '+', numbers[end_index])
-        sum += numbers[start_index] + numbers[end_index]
-        start_index += 1
-        end_index -= 1
-    middle_value = numbers[len(numbers) // 2]
-    print(middle_value)
-    sum += middle_value
-    print('Result:', sum)
-
-gaussian_sum(list(range(1, 10)))