Commit 43207d79 by BellCodeEditor

save project

parent 9a496123
Showing with 2 additions and 2 deletions
with open(r'c:\Users\Administrator\Documents\lesson13-3\sales_list.txt','r',encoding='utf-8')as file:
a=file.readlines()
#print(a)
print(a)
f_sum=[]
for i in a:
deta=i.split()
#print(deta[1:])
print(deta[1:])
sum=0
for s in deta[1:]:
sum=sum+int(s)
......
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