Commit b383d39e by BellCodeEditor

save project

parent 1e2bf3bf
Showing with 7 additions and 11 deletions
a=""
with open(r'c:\Users\ASUS\Desktop\sales_list.txt','r',encoding='utf-8')as f: with open(r'c:\Users\ASUS\Desktop\sales_list.txt','r',encoding='utf-8')as f:
a=f.readlines() a=f.readlines()
for i in a: for i in a:
d=i.split() d=i.split()
# print(d[0]) sum=0
# print(d[1:]) for j in d[1:]:
s=0 sum=sum+int(j)
for i in d[1:]: cnm=d[0]
s=s+int(i) cnm=cnm+str(sum)
print(s) print(cnm)
for i in s:
i=i+s
print(s)
\ 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