Commit b47fe4da by BellCodeEditor

save project

parent 479d5190
Showing with 7 additions and 2 deletions
...@@ -2,5 +2,9 @@ with open(r'sales_list.txt','r',encoding='utf-8') as file: ...@@ -2,5 +2,9 @@ with open(r'sales_list.txt','r',encoding='utf-8') as file:
a=file.readlines() a=file.readlines()
print(a) print(a)
for i in a: for i in a:
listl=i.split() list=i.split()
print(listl[1:]) sum=0
for y in list[1:]
s=s+int(y)
s=list[0]+str(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