Commit e81f925c by BellCodeEditor

auto save

parent dc70412a
Showing with 21 additions and 0 deletions
def kk():
t=[]
while True:
u=input('')
if u =='q':
break
try:
u=int(u)
except:
print('a')
else:
t.append(u)
return t
def sum(a):
qh=0
for i in a:
qh=qh+i
return qh
b=kk()
p=sum(b)
print(p)
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