Commit 4edb0e2e by BellCodeEditor

save project

parent 363fa18f
Showing with 5 additions and 1 deletions
...@@ -2,5 +2,8 @@ filel=open(r'c:\Users\pc\Documents\lesson13-1\sales_list.txt','r',encoding='utf- ...@@ -2,5 +2,8 @@ filel=open(r'c:\Users\pc\Documents\lesson13-1\sales_list.txt','r',encoding='utf-
a=filel.readlines() a=filel.readlines()
for i in a: for i in a:
data=i.split() data=i.split()
print(data[1:]) s=0
for b in data[1:]:
s=s+int(b)
print(s)
filel.close() filel.close()
\ 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