Commit 4d50b69c by BellCodeEditor

save project

parent 48d7df78
Showing with 7 additions and 3 deletions
with open (r'C:\Users\Administrator\Desktoptest (2).txt','r',encoding='utf-8')as a:
for i in range(a):
c=a.readlines()
for i in c:
b=i.split()
print(b[1:])
\ No newline at end of file
d=0
for aa in b[1:]:
d=d+int(aa)
bb=b[0]+str(d)
print(bb)
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