Commit a1fe8b9e by BellCodeEditor

save project

parent 830c38f2
Showing with 1 additions and 1 deletions
......@@ -5,7 +5,7 @@ with open(r'c:\Users\003\Documents\lesson13-3\sales_list.txt','r',encoding='utf-
print(i)
data=i.split()
s=0
for sales in data[1:]
for sales in data[1:]:
s=s+int(sales)
r=data[0]+str(s)
print(r)
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