Commit 60fe2b84 by BellCodeEditor

save project

parent 0cc37ad4
Showing with 10 additions and 0 deletions
with open("sales_list.txt","r",encoding='utf-8') as file1:
a=file1.readlines()
for i in a:
i=i.split()
b=0
for sale in i[1:]:
b+=int(sale)
print(i[0],b)
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