Commit 519f54f4 by BellCodeEditor

save project

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