Re: [Tutor] neat join

2005-10-24 Thread Kent Johnson
Vincent Gulinao wrote: > 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 =

[Tutor] neat join

2005-10-24 Thread Vincent Gulinao
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