Commit 4fece92c by BellCodeEditor

save project

parent 614168fa
Showing with 4 additions and 3 deletions
...@@ -6,5 +6,6 @@ with open(r'c:\Users\EDZ\Desktop\sales_list.txt','r',encoding='utf-8')as firl: ...@@ -6,5 +6,6 @@ with open(r'c:\Users\EDZ\Desktop\sales_list.txt','r',encoding='utf-8')as firl:
sum=0 sum=0
for sales in d[1:]: for sales in d[1:]:
sum=sum+int(sales) sum=sum+int(sales)
d=d[0]
print(d[0]+str(sum)) a=d+str(sum)
\ No newline at end of file print(a)
\ 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