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
b_b=a_a.readlines()
for i in b_b:
c_c=i.split(" ")
d_d=0
for a in c_c[1:]:
int(d_d)
d_d=d_d+a
print(d_d)
\ No newline at end of file
d=0
for z in c_c[1:]:
d += int(z)
print(c_c[0] + str(d))
\ 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