Commit 56cca854 by BellCodeEditor

save project

parent 8559b7fc
Showing with 11 additions and 3 deletions
with open(r"C:\Users\Administrator\Desktop\sales_list.txt", "r", encoding="utf-8")as q: with open(r"C:\Users\Administrator\Desktop\s.txt", "r", encoding="utf-8")as q:
a=q.readlines() a=q.readlines()
for i in a: for i in a:
print(i) y=i.split()
\ No newline at end of file d=y[1:]
j=0
for e in d:
j+=int(e)
result = y[0] + str(j)
print(result)
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