Commit 71be77a8 by BellCodeEditor

save project

parent 0cc37ad4
Showing with 15 additions and 0 deletions
with open(r"C:\Users\makcoo\Desktop\test.txt",'r',encoding='utf_8')as file1:
a=file1.readlines()
#print(a)
for i in a:
print(i)
with open(r"C:\Users\makcoo\Desktop\test.txt",'r',encoding='utf_8')as file1:
a=file1.readlines()
#print(a)
for i in a:
A=i.split()
aa=0
for b in A[1:]:
aa=aa+int(b)
d=A[0]+str(aa)
print(d)
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