Commit f1cdbba3 by BellCodeEditor

save project

parent 0e8bcbf0
Showing with 9 additions and 2 deletions
with open(r"c:\Users\Administrator\Documents\lesson13-3\sales_list.txt","r",encoding="utf-8")as Ze:
Z=Ze.readlines()
for i in Z:
print(i)
#print(i)
C=i.split()
print(C[1:])
#print(C[1:])
a=0
for i in C[1:]:
a=a+int(i)
d=C[0]+str(a)
print(d)
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