Commit 193e0bcd by BellCodeEditor

save project

parent e7592d44
Showing with 6 additions and 2 deletions
...@@ -3,4 +3,8 @@ with open("C:\Users\maku\Desktop\1234.txt","r",encoding='uft-8')as a: ...@@ -3,4 +3,8 @@ with open("C:\Users\maku\Desktop\1234.txt","r",encoding='uft-8')as a:
for i in s: for i in s:
f=i.split() f=i.split()
print(f[1:]) sum=0
\ No newline at end of file for d in f[1:]:
sum=sum+int(d)
r=f[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