Commit c6a8207e by BellCodeEditor

save project

parent 81f52bfc
Showing with 6 additions and 3 deletions
jg=open(r'c:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8') jg=open(r'c:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8')
b=jg.readlines() b=jg.readlines()
for i in b: for i in b:
sum=0
data=i.split() data=i.split()
print(data[0]) for j in data[1:]:
print(data[1:]) sum=sum+int(j)
\ No newline at end of file print(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