From e12d52888429f501133a7262f449040e6b2571cf Mon Sep 17 00:00:00 2001 From: Yesen Date: Fri, 6 Oct 2023 22:42:17 +0300 Subject: [PATCH] some fix in taskk --- practica/stepik/stepik_tasks/sum_num_nearby.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/practica/stepik/stepik_tasks/sum_num_nearby.py b/practica/stepik/stepik_tasks/sum_num_nearby.py index 5ad4b6f..11eb3b2 100644 --- a/practica/stepik/stepik_tasks/sum_num_nearby.py +++ b/practica/stepik/stepik_tasks/sum_num_nearby.py @@ -1,4 +1,4 @@ -# вариант решения 1 +# ver 1/ вариант решения 1 a = input().split() len_a = len(a) - 1 for index, number in enumerate(a): @@ -21,7 +21,7 @@ for index, number in enumerate(a): print (b) -# вариант решения 2 -короче +# ver 2/ вариант решения 2 -короче initial_list = input().split() sum_list = [] left_index = -1 @@ -34,7 +34,7 @@ while middle_index < len(initial_list): middle_index += 1 print(sum_list) -# вариант решения 3 +# ver 3/ вариант решения 3 a = [int(item) for item in input().split()] a2 = [] for i in range(len(a)):