Commit be6d6c37 by BellCodeEditor

save project

parent 623a562c
Showing with 4 additions and 3 deletions
...@@ -3,10 +3,10 @@ with open(r'C:\Users\Admin\Documents\lesson13-1\sales_list.txt','r',encoding='ut ...@@ -3,10 +3,10 @@ with open(r'C:\Users\Admin\Documents\lesson13-1\sales_list.txt','r',encoding='ut
for i in a: for i in a:
data=i.split() data=i.split()
s=0 s=0
for sales in data[1:] for sales in data[1:]:
s=s+int(sales) s=s+int(sales)
result = data[0]+str(s) result = data[0]+str(s)
peint(result) 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