Commit 45b9e1ef by BellCodeEditor

save project

parent 744de9a0
Showing with 3 additions and 3 deletions
...@@ -8,5 +8,5 @@ with open(r"c:\Users\Windows\Documents\lesson13-1\sales_list.txt",'r',encoding=" ...@@ -8,5 +8,5 @@ with open(r"c:\Users\Windows\Documents\lesson13-1\sales_list.txt",'r',encoding="
sum=0 sum=0
for sales in data[1:]: for sales in data[1:]:
sum=sum+int(sales) sum=sum+int(sales)
data[0]+ result = data[0]+str(sum)
print(sum) print(result)
\ 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