From 7d3a9e9e85c428b4fe6d16c9268cfd1c8ed2f58c Mon Sep 17 00:00:00 2001 From: tejasree Date: Sun, 27 Oct 2024 08:34:04 +0530 Subject: [PATCH] Update sumofnumbers.py --- sumofnumbers.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sumofnumbers.py b/sumofnumbers.py index 5b95001..d50fc18 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 + return total print(sum_of_list([1, 2, 3, 4])) print(sum_of_list([1, 2, 3, 4, 5])) print(sum_of_list([]))