Commit c8fb856c by BellCodeEditor

save project

parent a5e5c9ee
Showing with 2 additions and 0 deletions
......@@ -5,5 +5,6 @@ with open('sales_list.txt','r',encoding='utf-8')as file:
sum=0
for num in data[1:]:
if num not in {'\n',' ',''}:
sum+=int(num)
print(data[0]+str(sum))
file.close()
\ 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