Commit 74bca363 by BellCodeEditor

auto save

parent 1f17ce0b
Showing with 3 additions and 10 deletions
with open(r'C:\Users\maku\Desktop\111.txt','r',encoding='utf-8')as file: with open(r'C:\Users\maku\Desktop\111.txt','r',encoding='utf-8' ) as file:
a=file.readlines()
for i in a: \ No newline at end of file
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