Skip to content

Instantly share code, notes, and snippets.

@jaychoo
Created October 19, 2011 18:46
Show Gist options
  • Save jaychoo/1299256 to your computer and use it in GitHub Desktop.
Save jaychoo/1299256 to your computer and use it in GitHub Desktop.
Itertool chain - add all list into one
from itertools import chain
result_list = list(chain(page_list, article_list, post_list))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment