Skip to content

Commit db207da

Browse files
committed
style: fix spacing in sum and product function
1 parent 6fd957a commit db207da

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎Sprint-1/Python/calculate_sum_and_product/calculate_sum_and_product.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from typing import Dict, List
22

3-
43
# def calculate_sum_and_product(input_numbers: List[int]) -> Dict[str, int]:
54
# """
65
# Calculate the sum and product of integers in a list.
@@ -28,12 +27,13 @@
2827
# for current_number in input_numbers:
2928
# product *= current_number
3029

30+
3131
# return {"sum": sum, "product": product}
3232
def calculate_sum_and_product(input_numbers: List[int]) -> Dict[str, int]:
33-
total:int = 0
34-
product:int = 1
33+
total: int = 0
34+
product: int = 1
3535
for num in input_numbers:
36-
total+=num
37-
product*=num
36+
total += num
37+
product *= num
3838

39-
return {"sum": total, "product": product}
39+
return {"sum": total, "product": product}

0 commit comments

Comments
 (0)