python list's remove method has some issues. I have attached the code below. The code does not remove all elements with length less than 3
result=[['10'], ['5'], ['6'], ['12'], ['9'], ['10'], ['5', '9', '10'],
['5', '10'], ['13'], ['9', '10'], ['1']]
for i in result:
if len(i)<=2:
result.remove(i)
print (result)
The result prints as [['5'], ['12'], ['10'], ['5', '9', '10'], ['12']] Any help is really welcomed and appreciated