human
Looping over a list in Python
assistant
Here is some code to loop over a list `mylist` if sublists length equals 3

[x for x in mylist if len(x) == 3]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.