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:
date = file.readlines()
for i in date:
ls=i.split()
# print(ls[1:])
sum=0
for k in ls[1:]:
sum+=int(k)
u=ls[0]+str(sum)
print(u)
print(ls[1:])
\ 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