Commit 111a43ec by BellCodeEditor

save project

parent 690be7ed
Showing with 7 additions and 4 deletions
...@@ -3,6 +3,10 @@ with open(r'c:\Users\23487\Documents\lesson13-1\sales_list.txt','r',encoding='ut ...@@ -3,6 +3,10 @@ with open(r'c:\Users\23487\Documents\lesson13-1\sales_list.txt','r',encoding='ut
for i in a: for i in a:
data=i.split() data=i.split()
print(data[0]) # print(data[0])
print(data[l:]) # print(data[l:])
dd = 0
\ No newline at end of file for j in data[1:]:
dd = dd+int(j)
print(dd)
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