Commit 9cf81b50 by BellCodeEditor

save project

parent b757c463
Showing with 6 additions and 3 deletions
......@@ -2,7 +2,10 @@ with open(r'c:\Users\LEGO\Documents\lesson13-1\sales_list.txt','r',encoding='utf
a=file.readlines()
for i in a:
y=0
b=i.split()
c=b[1:]
print(c)
\ No newline at end of file
for d in c:
y=y+int(d)
print(y)
\ 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