mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-12 21:01:48 +08:00
Update 11_functions.md
This commit is contained in:
parent
b78270feb3
commit
a5b0933f45
@ -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
|
||||
```
|
||||
|
||||
Loading…
Reference in New Issue
Block a user