Commit 25b319e9 by BellCodeEditor

save project

parent f3df8b6d
Showing with 10 additions and 4 deletions
file=open(r'c:\Users\Admin\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') with open(r'c:\Users\Admin\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as file:
a=file.read() a=file.readlines()
print(a)
\ No newline at end of file b=0
for i in a:
c=i.split()
for m in c[1:]:
b+=int(m)
print(b)
\ 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