Skip to content

Instantly share code, notes, and snippets.

@kzinmr
Last active December 14, 2018 03:00
Show Gist options
  • Save kzinmr/37f5d162d2a13ce7ff853c52a0e60b0b to your computer and use it in GitHub Desktop.
Save kzinmr/37f5d162d2a13ce7ff853c52a0e60b0b to your computer and use it in GitHub Desktop.
from itertools import chain
def flatten(l):
return list(chain.from_iterable(l))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment