Commit 9883a70d by BellCodeEditor

save project

parent 4066b34d
Showing with 9 additions and 5 deletions
with open(r"C:\Users\EDZ\Documents\lesson13-1\sales_list.txt","r",encoding="utf-8") as file1: with open(r"C:\Users\EDZ\Documents\lesson13-1\sales_list.txt","r",encoding="utf-8") as file1:
es = file1.readlines() data = file1.readlines()
for i in es: for i in data:
a = es.stlip() a = i.split()
print(a[0],a[1:]) sum=0
\ No newline at end of file for seal in a[1:]:
sum = sum + int(seal)
res = a[0] + str(sum)
print(res)
\ 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