Commit 7e34a821 by BellCodeEditor

save project

parent 5c8692d3
Showing with 3 additions and 3 deletions
with open('sales_list.txt','r',encoding='utf-8') as f:
file=f.readlines()
print(file)
for i in file:
data=i.split()
print(data[0])
sum=0
for j in data[1:]:
sum = sum +int (j)
sum=sum+int(j)
s=data[0]+str(sum)
print(s)
\ 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