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