Commit ba6debc8 by BellCodeEditor

save project

parent d443b539
Showing with 7 additions and 3 deletions
...@@ -2,9 +2,13 @@ ...@@ -2,9 +2,13 @@
#fill1.read() #fill1.read()
with open(r'c:\Users\maku\Desktop\sales_list.txt','r',encoding='utf-8')as fill1: with open(r'c:\Users\maku\Desktop\sales_list.txt','r',encoding='utf-8')as fill1:
d=fill1.readlines() d=fill1.readlines()
# print(d)
for i in d: for i in d:
c=i.split() c=i.split()
b=0 b=0
for a in c[i:]: for a in c[1:]:
b=b+a b=b+int(a)
print(b)
mingz=c[0]+str(b)
print(mingz)
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