Commit f6d6b4e4 by BellCodeEditor

save project

parent 8950949c
Showing with 1 additions and 1 deletions
...@@ -11,7 +11,7 @@ for i in a: ...@@ -11,7 +11,7 @@ for i in a:
sum=0 sum=0
for ab in data[1:]: for ab in data[1:]:
sum=sum+int(ab) sum=sum+int(ab)
six=data[0]+str(sum) six=data[0]+str(sum)+'\n'
final_sum.append(six) final_sum.append(six)
with open(r'C:\Users\DELL\Desktop\new_test.txt','a',encoding='utf-8') as file: with open(r'C:\Users\DELL\Desktop\new_test.txt','a',encoding='utf-8') as 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