Commit bf114af7 by BellCodeEditor

save project

parent fe13d86f
Showing with 8 additions and 2 deletions
def sum(a):
s=0
for i in a:
s=s+a
return s
def newinput(): def newinput():
total = [] total = []
while True: while True:
...@@ -13,4 +18,5 @@ def newinput(): ...@@ -13,4 +18,5 @@ def newinput():
total.append(unit) total.append(unit)
return total return total
abc=newinput() abc=newinput()
print(abc) d=sum(abc)
\ No newline at end of file print(d)
\ 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