Commit 03bc91dd by BellCodeEditor

save project

parent 64651b8a
Showing with 2 additions and 6 deletions
...@@ -2,9 +2,4 @@ with open("sales_list.txt","r",encoding="utf-8") as file: ...@@ -2,9 +2,4 @@ with open("sales_list.txt","r",encoding="utf-8") as file:
date = file.readlines() date = file.readlines()
for i in date: for i in date:
ls=i.split() ls=i.split()
# print(ls[1:]) print(ls[1:])
sum=0 \ No newline at end of file
for k in ls[1:]:
sum+=int(k)
u=ls[0]+str(sum)
print(u)
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