Commit f15a2ed2 by BellCodeEditor

save project

parent fd339ed4
Showing with 2 additions and 2 deletions
...@@ -4,7 +4,7 @@ with open(r'c:\Users\EDZ\Desktop\aa.txt','r',encoding='utf-8') as aa: ...@@ -4,7 +4,7 @@ with open(r'c:\Users\EDZ\Desktop\aa.txt','r',encoding='utf-8') as aa:
for i in a: for i in a:
data=i.split() data=i.split()
sum=0 sum=0
for sales in data: for s in data:
sum=sum+int(sales) sum=sum+int(s)
result=data[0]+str(sum) result=data[0]+str(sum)
print(result) print(result)
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