From bf400b17121759e8df7fbd8d6f71ccd9b252ee22 Mon Sep 17 00:00:00 2001 From: tejasree Date: Sun, 27 Oct 2024 08:31:44 +0530 Subject: [PATCH] Update sumofnumbers.py --- sumofnumbers.py | 4 ---- 1 file changed, 4 deletions(-) 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([]))