Commit 536b87e6 by BellCodeEditor

save project

parent a2993280
Showing with 5 additions and 2 deletions
with open(r'c:\Users\1\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8',) as file1: with open(r'c:\Users\1\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8',) as file1:
data=file1.readlines() data=file1.readlines()
sum=0
# print(data) # print(data)
for i in data: for i in data:
data=i.split() data=i.split()
print(data[1:]) for salse in data[1:]:
\ No newline at end of file sum+=int(salse)
print(data[0]+str(salse))
\ 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