Commit a36f751c by BellCodeEditor

save project

parent 956f5a95
Showing with 6 additions and 1 deletions
......@@ -2,6 +2,11 @@ with open(r"C:\Users\EDZ\Documents\lesson13-1\sales_list.txt","r",encoding="utf-
data=file1.readlines()
for i in data:
a=i.split()
print(a[0],a[1:])
sum=0
for seal in a[1:]:
sum=sum + int(seal)
res=a[0]+str(sum)
print(res)
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