Commit 963d9c81 by BellCodeEditor

save project

parent ea3534b7
Showing with 9 additions and 1 deletions
......@@ -3,4 +3,12 @@ with open(r'c:\Users\admin\Desktop\sale.txt','r',encoding='utf-8')as file:
#print(a)
for i in a:
deta=i.split()
print(deta[1:])
sum=0
for sale in deta[1:]:
sum=sum+int(sale)
b=str(sum)
print(deta[0]+b)
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