import sys showall = (lambda x: map(sys.stdout.write, x)) t = showall(['spam\n', 'toast\n', 'eggs\n'])