Commit cf96336b by BellCodeEditor

save project

parent 1a8d7523
Showing with 8 additions and 2 deletions
...@@ -2,6 +2,11 @@ with open(r"c:\Users\makcoo\Documents\lesson13-1\sales_list.txt",'r',encoding="u ...@@ -2,6 +2,11 @@ with open(r"c:\Users\makcoo\Documents\lesson13-1\sales_list.txt",'r',encoding="u
a = fine.readlines() a = fine.readlines()
for i in a: for i in a:
tata =i.split() tata =i.split()
print(tata[0]) # print(tata[0])
print(tata[1:]) # print(tata[1:])
a=0
for g in tata[1:]:
a=a+int(g)
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