Commit 5ac54988 by BellCodeEditor

save project

parent 0cc37ad4
Showing with 11 additions and 0 deletions
with open("sales_list.txt","r",encoding="utf-8") as file:
f = file.readines()
for i in f:
data = i.split(" ")
sum = 0
for num in data[1:]
if num not in{'\n', '', ' '}
sum += int(num)
print(data[0] + str(num))
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