Commit 05780313 by BellCodeEditor

save project

parent 555fd33c
Showing with 7 additions and 6 deletions
...@@ -13,9 +13,11 @@ def new_input(): ...@@ -13,9 +13,11 @@ def new_input():
total.append(unit) total.append(unit)
print("-"*30) print("-"*30)
return total return total
a=new_input() def sum(m):
print(a) c=0
c=0 for i in m:
for i in a:
c=c+i c=c+i
print(c) return c
\ No newline at end of file print(sum)
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