Commit 98680844 by BellCodeEditor

save project

parent 1bb47bd8
Showing with 8 additions and 3 deletions
with open(r'c:\Users\dell\Desktop\sales_lis.txt','r',encoding='utf-8') as file1:
a=file1.readlines()
\ No newline at end of file
a=file1.readlines()
for i in a:
w=i.split()
sum=0
for sales in w[1:]:
sum=sum+int(sales)
print(sum)
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