Commit f60b3d2d by BellCodeEditor

save project

parent 74aee594
Showing with 2 additions and 3 deletions
with open(r"C:\Users\6460b\Documents\lesson13-1\sales_list.txt","r",encoding="utf-8") as file:
a=file.readlines()
print(a)
final_sum=[]
for i in a :
for i in a:
date=i.split()
sum=0
for sales in data[1:]:
sum=sum+int(rales)
sum=sum+int(sales)
result=date[0]+str(sum)+"\n"
final_sum.append(result)
......
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