Commit 94ad9b4a by BellCodeEditor

save project

parent e153e06e
Showing with 11 additions and 2 deletions
...@@ -13,7 +13,16 @@ def new_input(): ...@@ -13,7 +13,16 @@ def new_input():
total.append(unit) total.append(unit)
finally: finally:
print('-'*30) print('-'*30)
return total return total
def sun(money):
sount = 0
for i in money:
sount = sount + i
return sount
result = new_input() result = new_input()
print(result) pay = sun(result)
print(str(pay))
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