Commit c1c61e89 by BellCodeEditor

save project

parent 2b9d2fd5
Showing with 5 additions and 1 deletions
......@@ -2,5 +2,9 @@ with open(r"c:\Users\Administrator\Documents\lesson13-1\sales_list.txt",'r',enco
a=f.readlines()
for i in a:
s=i.split()
print(s[1:])
u=s[1:]
e=0
for z in u:
e+=int(z)
print(s[0],e)
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