Commit 2713018c by BellCodeEditor

save project

parent 8ee02c49
Showing with 5 additions and 1 deletions
...@@ -3,4 +3,8 @@ with open(r'C:\Users\EDZ\Documents\lesson13-1\sales_list.txt','r',encoding ="utf ...@@ -3,4 +3,8 @@ with open(r'C:\Users\EDZ\Documents\lesson13-1\sales_list.txt','r',encoding ="utf
for i in a : for i in a :
dadt = i.split() dadt = i.split()
sum=0
for z in dadt[1:]:
sum=int(z)+sum
a = dadt[0]+str(sum)
print(a)
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