WeCodeAcademy

Flatten a list of lists

A nested comprehension loops the outer list first, then the inner one.

Examplepython
Open in editor »

More Python recipes