On Thu, Feb 19, 2009 at 11:25 AM, Dinesh B Vadhia <[email protected] > wrote:
> My solution is: > > print ''.join[string.replace(c, r) for c in str if c in set] > > But, this returns a syntax error. Any idea why? > Probably because you didn't use parentheses - join() is a function. -- www.fsrtechnologies.com
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
