Commit 6c730320 by BellCodeEditor

save project

parent ee5a596c
Showing with 3 additions and 2 deletions
...@@ -12,11 +12,11 @@ def new_input(): ...@@ -12,11 +12,11 @@ def new_input():
total.append(unit) total.append(unit)
return total return total
def sum(money): def sum(money):
summone=0 summoney=0
for i in money: for i in money:
summoney += i summoney += i
return summoney return summoney
tol=new_input() tol=new_input()
print(tol) print(tol)
mon=sum(tol) mon = sum(tol)
print(mon) print(mon)
\ 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