Commit c650abbf by BellCodeEditor

save project

parent 84447da0
Showing with 8 additions and 3 deletions
......@@ -2,8 +2,12 @@ with open(r"c:\Users\23636\Documents\lesson13-1\sales_list.txt","r",encoding="ut
a=filel.readlines()
for i in a:
date=i.split()
print(date[1:])
data=i.split()
#print(date[1:])
sum=0
for b in data[1:]:
sum=sum+int(b)
c=data[0]+str(sum)
print(c)
\ 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