Commit 4adf847e by BellCodeEditor

save project

parent 654eb89a
Showing with 6 additions and 1 deletions
......@@ -7,4 +7,9 @@ with open(r'c:\Users\mk11\Documents\lesson13-4\sales_list.txt','r',
for salse in data[1:]:
sum+=int(salse)
print(data[0]+str(salse))
result = data[0]+str(sum)'\n'
final_num.append(result)
print(final_num)
with open(r'c:\Users\21901\Documents\lesson13-1\new_list.txt','w',
encoding='utf-8',) as file1:
file1.writelines(final_num)
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