Commit a1fba024 by BellCodeEditor

save project

parent e6592809
Showing with 2 additions and 6 deletions
......@@ -3,8 +3,4 @@ with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',enco
a = file.readlines()
for i in a:
data = i.split()
a = 0
for sales in data[1:]:
a += int(sales)
b = data[0]+str(a)
print(b)
\ No newline at end of file
print(data[1:])
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
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