Commit 10cdfa73 by BellCodeEditor

save project

parent 413562bf
Showing with 6 additions and 6 deletions
...@@ -2,8 +2,8 @@ with open(r'c:\Users\teem\Documents\lesson13-1\sales_list.txt','r',encoding='utf ...@@ -2,8 +2,8 @@ with open(r'c:\Users\teem\Documents\lesson13-1\sales_list.txt','r',encoding='utf
b_b=a_a.readlines() b_b=a_a.readlines()
for i in b_b: for i in b_b:
c_c=i.split(" ") c_c=i.split(" ")
d_d=0
for a in c_c[1:]: d=0
int(d_d) for z in c_c[1:]:
d_d=d_d+a d += int(z)
print(d_d) print(c_c[0] + str(d))
\ No newline at end of file \ 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