Commit 898f8824 by BellCodeEditor

save project

parent b46e98fb
Showing with 6 additions and 5 deletions
......@@ -2,8 +2,9 @@ with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',enco
ofi=ftkt.readlines()
for i in ofi:
bkgg=i.split()
print(bkgg[1:])
#print(bkgg[1:])
sum=0
for such in data[1:]:
sum=sum+int(sales)
print(sum)
\ No newline at end of file
for such in bkgg[1:]:
sum=sum+int(such)
result=bkgg[0]+str(bkgg)
print(result)
\ 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