Commit 799edac5 by BellCodeEditor

save project

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