Commit c2c3a503 by BellCodeEditor

save project

parent 0d67b62a
Showing with 3 additions and 13 deletions
with open(r'c:\Users\EDZ\Documents\lesson13-4\sales_list.txt',"r",encoding="utf-8") as file:
a=file.readlines()
for i in a:
sum=0
new_we=i.split()
for j in new_we[1:]:
sum=sum+int(j)
a=new_we[0]+str(sum)
print(a)
with open(r'c:\Users\EDZ\Documents\lesson13-1\sales_list.txt',"r",encoding="utf-8") as we:
a=file.readlines
\ No newline at end of file
\ 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