Commit 13fdcf74 by BellCodeEditor

save project

parent 797f72e9
Showing with 7 additions and 7 deletions
...@@ -14,9 +14,9 @@ def new_input(): ...@@ -14,9 +14,9 @@ def new_input():
finally: finally:
print('-'*30) print('-'*30)
return total return total
def sum(money): def new_sum(money):
count=0 count=0
for i in money: for i in money:
count=count+i count=count+i
return count return count
print(sum(new_input())) print(new_sum(new_input()))
\ No newline at end of file \ 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