Practise question(session)

l=[1,6,-3,9,-7,-1,4,6]
m=[]
n=[]
for i in range(len(l)):
if l[i]<0:
m.append(l[i])
m.sort()
else:
n.append(l[i])
n.sort()
print(m+n)

1 Like

Good one @mekala.akhil2468

@mekala.akhil2468

Correct, keep it up.
Practice more