Commit 1db5d9f2 by BellCodeEditor

save project

parent 67bb4acf
Showing with 10 additions and 2 deletions
......@@ -12,5 +12,14 @@ def new_input():
else:
total.append(unit)
return total
def sum(m):
count=0
for i in m:
count=count+int(i)
return count
a=new_input()
print(a)
\ No newline at end of file
print(a)
b=sum(a)
print(b)
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