Skip to content

Instantly share code, notes, and snippets.

@mazieres
Created February 28, 2018 09:18
Show Gist options
  • Save mazieres/57f2f7675b4471f55022c39a5c47e725 to your computer and use it in GitHub Desktop.
Save mazieres/57f2f7675b4471f55022c39a5c47e725 to your computer and use it in GitHub Desktop.
def flatten(li):
return [item for sublist in li for item in sublist]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment