Commit 0a751921 by BellCodeEditor

auto save

parent 5ec53ebb
Showing with 11 additions and 0 deletions
with open(r'C:\Users\Administrator\Desktop\wazhedeshiniyo.txt','r',encoding='utf-8') as a:
b=a.readlines()
# print(b)
for i in b:
c=i.split()
qwq=0
for w in c[1:]:
qwq=qwq+int(w)
print(c[0]+str(qwq))
\ 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