diff --git a/sumofnumbers.py b/sumofnumbers.py index 5b95001..693fabf 100644 --- a/sumofnumbers.py +++ b/sumofnumbers.py @@ -4,11 +4,7 @@ def sum_of_list(lst): total = total + n return total total = total + num - return total # Correct capitalization here - total = total + num return total - -# Test the function print(sum_of_list([1, 2, 3, 4])) print(sum_of_list([1, 2, 3, 4, 5])) print(sum_of_list([]))