Commit b70a60a8 by BellCodeEditor

save project

parent 91475a98
Showing with 7 additions and 2 deletions
......@@ -2,4 +2,9 @@ with open(r'c:\Users\mayi\Documents\lesson13-1\sales_list.txt','r',encoding='utf
a=f.readlines()
#print(a)
for i in a:
print(i)
\ No newline at end of file
#print(i)
j=i.split()
sum=0
for x in j[1:]:
sum =sum+int(x)
print(sum)
\ 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