is there any simple syntax for joining strings such that if any (or all) of the params is white space or None, it won't be included in the resulting string?

e.g. str1, str2, str3 = "foo", "bar", None, if delimiter is " " would result to "foo bar"; str1, str2 = None, None would result to None.

TIA.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to