Commit 21acb0f6 by BellCodeEditor

save project

parent fdffa313
Showing with 11 additions and 2 deletions
...@@ -13,5 +13,14 @@ def jia(): ...@@ -13,5 +13,14 @@ def jia():
total.append(unit) total.append(unit)
return total return total
def sum(result):
o =0
for i in result:
o= o +i
print(o)
result = jia() result = jia()
print(result) sum(result)
\ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment