Commit b9000024 by BellCodeEditor

save project

parent dc140595
Showing with 6 additions and 2 deletions
...@@ -4,4 +4,8 @@ with open (r"c:\Users\Administrator\Documents\lesson13-3\sales_list.txt","r",enc ...@@ -4,4 +4,8 @@ with open (r"c:\Users\Administrator\Documents\lesson13-3\sales_list.txt","r",enc
for i in info: for i in info:
data=i.split() data=i.split()
new_data=data[1:] new_data=data[1:]
print(new_data) sum=0
\ No newline at end of file for sales in new_data:
sum=sum+int(sales)
re
print(sum)
\ 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