"Terry Carroll" <[EMAIL PROTECTED]> wrote
> Basically, I have a string s, and I want to print it out only if
> every
> character in it is printable
Here is my attempt...
def isPrintable(s)
import string
return not filter(lambda c: c not in string.printable, s)
But thats very similar to your LC version just slightly more
readable - to me at least!
Alan G.
Just back from a weeks vacation :-)
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor