Commit 56380c26 by BellCodeEditor

save project

parent 018f718b
Showing with 9 additions and 9 deletions
def sum(d):
f=0
for i in d:
f=f+i
return f
def new_input(): def new_input():
total = [] total = []
while True: while True:
...@@ -6,13 +11,8 @@ def new_input(): ...@@ -6,13 +11,8 @@ def new_input():
break break
else: else:
total.append(int(unit)) total.append(int(unit))
print(total)
return total[0] return total
q=new_input() q=sum(new_input())
def sum(d): print(q)
f=0
for i in d:
f=f+i
return f
print(sum(q))
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