#!/usr/local/bin/python2 from itertools import chain l = [1] c = chain(l) for i in c: print i