Commit a4a4408e by BellCodeEditor

save project

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