Update 11_functions.md

This commit is contained in:
theolucky889 2024-04-09 12:11:31 +08:00 committed by GitHub
parent b78270feb3
commit a5b0933f45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
```