Commit c5160d45 by BellCodeEditor

save project

parent 43a4f540
Showing with 5 additions and 3 deletions
with open(r'C:\Users\maku\Desktop\zxcvbnm.txt','r',encoding='utf-8')as file: with open(r'C:\Users\maku\Desktop\zxcvbnm.txt','r',encoding='utf-8')as file:
sb=file.readlines() sb=file.readlines()
for kun in sb: for kun in sb:
kun=i.split() k=kun.split()
# print(k[0])
hei=0 hei=0
for i in a[1:]: for i in k[1:]:
hei=hei+int(i) hei=hei+int(i)
b=a[0]=' '+str(hei) b=k[0]+' '+str(hei)
print(b) print(b)
\ 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