Commit 2cea5432 by BellCodeEditor

save project

parent 77b13898
Showing with 5 additions and 0 deletions
...@@ -5,6 +5,11 @@ with open(r'sales_list.txt','r',encoding='utf-8') as file: ...@@ -5,6 +5,11 @@ with open(r'sales_list.txt','r',encoding='utf-8') as file:
for i in a: for i in a:
date=i.split() date=i.split()
print(date[1:]) print(date[1:])
sum=0
for y in date[1:]:
sum=sum+int(y)
sum=date[0]+str(sum)
print(sum)
......
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