Commit 799edac5 by BellCodeEditor

save project

parent e67169b4
Showing with 10 additions and 2 deletions
...@@ -12,5 +12,13 @@ def func(): ...@@ -12,5 +12,13 @@ def func():
else: else:
total.append(unit1) total.append(unit1)
return total return total
def sum(money):
c=0
for i in money:
c = c + i
return c
#result = func() #result = func()
print(func()[2]) result = func()
\ No newline at end of file print(result)
print(sum(result))
\ 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