Commit 2517b734 by BellCodeEditor

save project

parent 78daa496
Showing with 4 additions and 3 deletions
......@@ -2,6 +2,7 @@ a=open(r'C:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',encodin
s=a.readlines()
for i in s:
d=i.split()
print(d[0])
D=0
for j in d[1:]:
\ No newline at end of file
D=D+int(j)
print(d[0]+D)
\ 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