Commit 73008f5e by BellCodeEditor

save project

parent 6aab7f34
Showing with 8 additions and 2 deletions
with open(r"c:\Users\Administrator\Documents\lesson13_2\sales_list.txt","r",encoding="utf-8") as b:
a=b.readlines()
for i in a:
print(i)
c=i.split()
print(c[1:])
d=0
for i in c[1:]:
d=d+int(i)
e=c[0]+str(d)
print(e)
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