From a5b0933f45a681bc17ead3ff9d1a5cf22178630f Mon Sep 17 00:00:00 2001 From: theolucky889 <111281171+theolucky889@users.noreply.github.com> Date: Tue, 9 Apr 2024 12:11:31 +0800 Subject: [PATCH] Update 11_functions.md --- 11_Day_Functions/11_functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/11_Day_Functions/11_functions.md b/11_Day_Functions/11_functions.md index a80e5bf..dc36efa 100644 --- a/11_Day_Functions/11_functions.md +++ b/11_Day_Functions/11_functions.md @@ -148,7 +148,7 @@ def sum_of_numbers(n): total = 0 for i in range(n+1): total+=i - print(total) + return total print(sum_of_numbers(10)) # 55 print(sum_of_numbers(100)) # 5050 ```