Commit a93f8440 by BellCodeEditor

save project

parent 968ac44b
Showing with 8 additions and 3 deletions
...@@ -3,5 +3,10 @@ with open (r"C:\Users\windows 7\Desktop\sales_list.txt",'r',encoding='UTF-8')as ...@@ -3,5 +3,10 @@ with open (r"C:\Users\windows 7\Desktop\sales_list.txt",'r',encoding='UTF-8')as
#print(a) #print(a)
for i in a: for i in a:
sb=i.split() sb=i.split()
print(sb[0]) #print(sb[0])
print(sb[1:]) #print(sb[1:])
\ No newline at end of file sum=0
for sales in sb[1:]:
sum=sum+int(sales)
cs=sb[0]+str(sum)
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