Wrong Answer for Clean up with Python code

Hi,

I’ve tried debugging this code but I’m unable to realize why its failing. Could anyone suggest what the issue might be?

Code:

T=int(raw_input()) #1<=T<=50
n=0 #Total tasks to be completed
m=0 # Number of tasks already completed
final_output=[]
for i in range(0,T):
chef=[]
asst=[]
final_tasks=[]
tasksComplete = []
inputs = raw_input()
inputs = inputs.split(" ")
n = int(inputs[0])
m = int(inputs[1])
m_inputs=raw_input()
for k in range(1,n+1):
if str(k) not in m_inputs:
final_tasks.append(k)
final_tasks.sort()
for l in range(0,len(final_tasks)):
if l%2==0:
chef.append(final_tasks[l])
else:
asst.append(final_tasks[l])
final_output.append(chef);
final_output.append(asst);
for i in final_output:
print ’ '.join(map(str, i))

//