Commit 04f7b3c7 by BellCodeEditor

save project

parent 032b040d
Showing with 3 additions and 2 deletions
...@@ -14,9 +14,9 @@ def new_input(): ...@@ -14,9 +14,9 @@ def new_input():
print("-"*30) print("-"*30)
return total return total
def sum(money): def sum(money):
count = 0 count=0
for i in money: for i in money:
count += i count+=i
return count return count
list=new_input() list=new_input()
print(sum(list)) print(sum(list))
\ 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