for y, in [(1,), (2,), (3,)]: y for line, j in lines: print line for character, i in line: print character else: print y