Commit 58d61733 by BellCodeEditor

save project

parent 3eef9ad5
Showing with 2 additions and 3 deletions
...@@ -4,7 +4,6 @@ with open(r'C:\Users\no1\Documents\lesson13-3\sales_list.txt','r',encoding='utf- ...@@ -4,7 +4,6 @@ with open(r'C:\Users\no1\Documents\lesson13-3\sales_list.txt','r',encoding='utf-
date = i.split() date = i.split()
sum=0 sum=0
for sales in date[1:]: for sales in date[1:]:
sum=sum+int(sales) sum += int(sales)
date[0]+ print(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