diff --git a/kyu_6/sums_of_parts/solution.py b/kyu_6/sums_of_parts/solution.py index 2c332f9d96d..938405f8f4b 100644 --- a/kyu_6/sums_of_parts/solution.py +++ b/kyu_6/sums_of_parts/solution.py @@ -21,8 +21,8 @@ def parts_sums(input_ls: list) -> list: result.append(ls_sum) for num in input_ls: - n = ls_sum - num - result.append(n) - ls_sum = n + current_sum: int = ls_sum - num + result.append(current_sum) + ls_sum = current_sum return result