Commit 19ae50d8 by BellCodeEditor

save project

parent 4e6bed16
Showing with 10 additions and 3 deletions
with open(r'C:/Users/8/AppData/Roaming/pythonWin/python.exe','r',enoding:'utf-8') as file: with open(r'c:\Users\6\Documents\lesson13-3\sales_list.txt','r',enoding:'utf-8') as file:
a=file a=file.readlines()
\ No newline at end of file for i in a:
data=i.split()
sum=0
for j in data[1:]:
sum+=int(j)
print(data[0]+str(sum))
\ 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