On Thu, Sep 15, 2011 at 2:41 PM, Sagar Neve <nevesagar at gmail.com> wrote: > ./sample.py: line 9: syntax error near unexpected token `:' > ./sample.py: line 9: `if (Opt_Param2 in url): ' > It worked for me in Python 3.2. What version of Python are you using? ChrisA