On Thu, Feb 19, 2009 at 11:25 AM, Dinesh B Vadhia <dineshbvad...@hotmail.com
> 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  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to