Commit a6d1c192 by BellCodeEditor

save project

parent 62d268ef
Showing with 8 additions and 4 deletions
with open(r'C:\Users\maku\Desktop\111.txt','r',encoding='utf-8')as file:
a=file.readlines()
for i in a:
t=i.split()
print(t[1:])
\ No newline at end of file
for i in a:
t=i.split()
sum=0
for c in t[1:]:
sum=sum+int(c)
r=t[0]+str(sum)
print(r)
\ 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