Commit a4a4408e by BellCodeEditor

save project

parent 2e758a7b
Showing with 9 additions and 3 deletions
total = []
def newinput():
total = []
while True:
......@@ -15,5 +14,12 @@ def newinput():
finally:
print("-"*30)
return total
def sum (money):
s=0
for i in money:
s = s + i
return s
p=newinput()
print(p)
\ No newline at end of file
print(p)
z=sum(p)
print(z)
\ 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