Commit 561d62e6 by BellCodeEditor

save project

parent 2f023605
Showing with 10 additions and 0 deletions
with open(r','r',encoding='utf-8') as file:
a=file.readlines()
for i in a:
date=i.split()
sum=0
for sales in date[1:]:
sum=sum+int(sales)
=date[0]+str(sum)
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