Commit 602e0045 by BellCodeEditor

save project

parent 40d7e591
Showing with 8 additions and 5 deletions
with open(r'c:\Users\6\Documents\lesson13-3\sales_list.txt,'r',
encodi file1.reng='utf-8') as file1:
data =adlines()
with open(r'c:\Users\mk123\Documents\lesson13-3\sales_list.txt','r',
encoding='utf-8') as file1:
data = file1.readlines()
sum=0
for i in data:
data=i.split()
print(data[1:])
for salse in data[1:]:
sum=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