Skip to content

Instantly share code, notes, and snippets.

@Alquimista
Created February 23, 2019 17:29
Show Gist options
  • Save Alquimista/9bed0e6eb902a82d8ff8057c2f96e873 to your computer and use it in GitHub Desktop.
Save Alquimista/9bed0e6eb902a82d8ff8057c2f96e873 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
#-*- coding:utf-8 -*-
from itertools import *
l = [[1, 2], [3, 4]]
print(list(chain(*l)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment