You could think about teaching them the linelist.append(fn(x)) way, which then gives you the choice of
"".join(linelist) - no gaps
"\n".join(lienlist) - one item per line
" ".join(linelist) - spaces between items.
Sure I will. Next week, when we come to list operations. .join() they already know. I just couldn't use this approach at the very beginning. Thanks to all who responded.
Regards, Marcin
-- http://mail.python.org/mailman/listinfo/python-list