Commit b7fb29a2 by BellCodeEditor

auto save

parent 7f7664ab
Showing with 2 additions and 5 deletions
......@@ -2,7 +2,4 @@ with open(r'c:\Users\123\Documents\lesson13_2\sales_list.txt','r',encoding='utf-
a=file.readlines()
#print(a)
for i in a:
w=i.split()
p=0
for o in w[1:]:
p=p+int(o)
\ No newline at end of file
print(i)
\ 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