Commit fe6809d0 by BellCodeEditor

save project

parent 3d8e00f0
Showing with 6 additions and 0 deletions
...@@ -11,5 +11,10 @@ def input_unit(): ...@@ -11,5 +11,10 @@ def input_unit():
else: else:
total.append(unit) total.append(unit)
return total return total
def sum(list):
count=0
for i in list:
count+=i
return count
result=input_unit() result=input_unit()
print(total) print(total)
\ 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