Commit 93716724 by BellCodeEditor

auto save

parent 5ec53ebb
Showing with 26 additions and 0 deletions
a=[
'wo 1 3 5 7 8 4 8',
'z1 1 3 5 7 8 4 8',
'z2 1 3 5 7 8 4 8',
'z3 1 3 5 7 8 4 8',
'z4 1 3 5 7 8'
]
a1=[]
for c in a:
l=c.split(' ')
s=0
for i in l[1:]:
s=s+int(i)
l.append(str(s))
c1=' '.join(l)
a1.append(c1)
print(a1)
# a='wo 1 3 5'
# b=a.split(' ')
# print(b)
# s=0
# for i in b[1:]:
# s+=int(i)
# print(s)
\ No newline at end of file
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