Commit fe794857 by BellCodeEditor

save project

parent 0ca44390
Showing with 10 additions and 0 deletions
...@@ -12,3 +12,12 @@ for i in a: ...@@ -12,3 +12,12 @@ for i in a:
#for i in a: #for i in a:
# data=i.split() # data=i.split()
# print(data[0]) # print(data[0])
final=[]
for i in a:
data=i.split()
sum=0
for salrs in data[1:]:
sum=sum+int(sales)
result=data[0]+str(sum)+'\n'
final.append(result)
\ 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