Commit 9a325393 by BellCodeEditor

save project

parent 8fa38a11
Showing with 5 additions and 2 deletions
......@@ -3,4 +3,7 @@ with open('c:\\Users\\Windows\\Documents\\lesson13-1\\sales_list.txt','w',encodi
a = fuck1.readlines()
for i in a:
date=i.split()
print(date[1:])
\ No newline at end of file
sum()for sales in date[1:]:
sum= sum+int(sales)
result=data[0]+str(sum)
print(result)
\ 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