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():
total = []
while True:
......@@ -13,4 +18,5 @@ def newinput():
total.append(unit)
return total
abc=newinput()
print(abc)
\ No newline at end of file
d=sum(abc)
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