Commit 413a1bcb by BellCodeEditor

save project

parent bba71615
Showing with 5 additions and 4 deletions
...@@ -12,9 +12,10 @@ def new_input(): ...@@ -12,9 +12,10 @@ def new_input():
else: else:
total.append(unit) total.append(unit)
return total return total
a = new_input() def a(s):
sum = 0 sum = 0
for i in a: for i in s:
sum+= i sum+= i
print(sum) return sum
print(a(new_input()))
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