Commit 764e7a49 by BellCodeEditor

save project

parent 31650749
Showing with 5 additions and 2 deletions
...@@ -3,4 +3,7 @@ with open(r'c:\Users\23636\Documents\lesson13-1\sales_list.txt',"r",encoding='ut ...@@ -3,4 +3,7 @@ with open(r'c:\Users\23636\Documents\lesson13-1\sales_list.txt',"r",encoding='ut
for i in a: for i in a:
data=i.split() data=i.split()
sum=0 sum=0
for abc for abc in data[1:]:
\ No newline at end of file sum=sum+int(abc)
g=data[0]+str(sum)
print(g)
\ 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