Commit 519f54f4 by BellCodeEditor

save project

parent 80a06fb4
Showing with 10 additions and 4 deletions
......@@ -7,7 +7,7 @@ def new_input():
break
else:
try:
int(unit)
unit=int(unit)
except:
print("BUG")
......@@ -15,5 +15,12 @@ def new_input():
total.append(unit)
print("-"*30)
return total
a=new_input()
print(a)
\ No newline at end of file
lists=new_input()
print(lists)
def sun(a):
sums=0
for i in a:
sums=sums+i
return sums
sum=sun(lists)
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