Commit bad3a0f2 by BellCodeEditor

save project

parent c3fe7b27
Showing with 6 additions and 2 deletions
...@@ -3,4 +3,8 @@ with open("sales_list.txt",'r',encoding='utf-8') as f1: ...@@ -3,4 +3,8 @@ with open("sales_list.txt",'r',encoding='utf-8') as f1:
for i in nr: for i in nr:
data=i.split() data=i.split()
print(data[1:]) sum=0
\ No newline at end of file for s in data[1:]:
sum=sum+int(s)
jg=data[0]+str(sum)
print(jg)
\ 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