Commit b6c515b8 by BellCodeEditor

save project

parent ef26dd4c
Showing with 2 additions and 0 deletions
...@@ -8,4 +8,5 @@ with open(r'c:\Users\jone\Documents\lesson13-1\sales_list.txt',"r",encoding = 'u ...@@ -8,4 +8,5 @@ with open(r'c:\Users\jone\Documents\lesson13-1\sales_list.txt',"r",encoding = 'u
sum = 0 sum = 0
for sale in result[1:]: for sale in result[1:]:
sum = sum + int(sale) sum = sum + int(sale)
count = result[0]+str(sum)
print(sum) print(sum)
\ 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