Commit 2bdfb570 by BellCodeEditor

save project

parent f990de14
Showing with 4 additions and 2 deletions
...@@ -3,6 +3,8 @@ a=film.readlines() ...@@ -3,6 +3,8 @@ a=film.readlines()
print(a) print(a)
for i in a: for i in a:
dat=i.split() dat=i.split()
print(dat[0]) sum=0
print(dat[1:]) for sales in dat[1:]:
sum=int(sales)+sum
film.close() film.close()
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