Commit bdf1cd37 by BellCodeEditor

save project

parent 87d47732
Showing with 11 additions and 1 deletions
with open(r'c:\Users\mayi\Desktop\sales_list.txt','r',encoding='utf-8') as j: with open(r'c:\Users\mayi\Desktop\sales_list.txt','r',encoding='utf-8') as cxp:
a=cxp.readlines()
# print(a)
for i in a:
p=i.split()
s=0
for x in p[1:]:
s=s+int(x)
r=p[0]+str(s)
print(r)
\ 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