Commit 95fc5e0b by BellCodeEditor

save project

parent af406c84
Showing with 7816 additions and 0 deletions
with open(r'c:\Users\makcoo\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as a:
b=a.readlines()
for i in b:
w=i.split()
sum=0
for sales in w[1:]:
sum=sum+int(sales)
result=w[0]+str(sum)
print(result)
# print(w[1:])
\ No newline at end of file
This diff is collapsed. Click to expand it.
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