On Feb 20, 2:03 pm, Lalit <[EMAIL PROTECTED]> wrote:
> Hi
> I am executing following commands.>>> test = 
> os.path.isfile('c:\\src\\kasjdfl.txt')
> >>> print test
>
> True
> ------------working fine but for below statement it is giving syntax
> error.
>
> >>> if (os.path.isfile('c:\\src\\kasjdfl.txt'))
>
> SyntaxError: invalid syntax
>
> any idea what is incorrect in my syntax

oops got the mistake I was nt ending if with :
sorry and thanks
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to