Commit 3f482f07 by BellCodeEditor

save project

parent b71b577b
Showing with 5 additions and 5 deletions
......@@ -3,7 +3,7 @@ with open (r'c:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8'
print(a)
for i in a:
b=i.split()
c=b[1:]
d=b[0]
print(d)
print(c)
\ No newline at end of file
sum=0
for sals in b[1:]:
sum+=int(sales)
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