On Thursday, June 11, 2015 at 9:20:59 PM UTC+5:30, Ian wrote:
> On Thu, Jun 11, 2015 at 9:40 AM,  
> >   if write this it is working fine, but if I write
> >
> >   if ("AND" in inp1) or ("OR" in inp1) or ("NOT" in inp1) or (">" in inp1) 
> > or ("&" in inp1) or ("MAYBE" in inp1) or ("(" in inp1) or ("*" in inp1) or 
> > (''' " ''' in   inp1):
> >
> >  the portion of (''' " ''' in   inp1) is not working.
> 
> Not working how? I copy-pasted the line and it appears to work fine.

Dear Sir,
Thank you for your kind reply. Nice to know your reply, but I am trying to send 
you my experiment, please see my results,

>>> def input1(n):
        inp1=raw_input("PRINT YOUR QUERY:")
        if ("AND" in inp1) or ("OR" in inp1) or ("NOT" in inp1) or (">" in 
inp1) or ("&" in inp1) or ("MAYBE" in inp1) or ("(" in inp1) or ("*" in inp1) 
or (''' " ''' in   inp1):
                print "FINE"

                
>>> input1(1)
PRINT YOUR QUERY:"Java"
>>> input1(1)
PRINT YOUR QUERY:"Obama in London"
>>> input1(1)
PRINT YOUR QUERY:Obama AND Bush
FINE
>>> input1(1)
PRINT YOUR QUERY:Obama OR Bush
FINE
>>> 

you may get better my problem. 

Regards,
Subhabrata Banerjee. 
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to