Skip to content

Instantly share code, notes, and snippets.

@wwgist
Created March 7, 2013 07:46
Show Gist options
  • Select an option

  • Save wwgist/5106281 to your computer and use it in GitHub Desktop.

Select an option

Save wwgist/5106281 to your computer and use it in GitHub Desktop.
PYTHON: list flattening
flatten_list = [item for sublist in start_list for item in sublist]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment