Commit 51173b30 by BellCodeEditor

save project

parent 1b6e4df0
Showing with 4 additions and 4 deletions
...@@ -3,9 +3,9 @@ with open(r'C:\Users\user6\Desktop\2.txt','r',encoding='utf-8') as file: ...@@ -3,9 +3,9 @@ with open(r'C:\Users\user6\Desktop\2.txt','r',encoding='utf-8') as file:
print(a) print(a)
for i in a: for i in a:
date=i.split() data=i.split()
sum=0 sum=0
for sales in data[1:]: for sales in data[1:]:
sum=sum+int(sales) sum=sum+int(sales)
result=data[0]+str(sum)
print(szles) print(result)
\ No newline at end of file \ 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