Error in or
subhabrata.banerji at gmail.com
subhabrata.banerji at gmail.com
Thu Jun 11 11:40:50 EDT 2015
Dear Group,
In the following script,
inp1=raw_input("PRINT YOUR INPUT:")
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):
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.
If any one of the esteemed members may kindly suggest the error I am making.
I am using Python2.7+ on Windows 7 Professional.
Apology for any indentation error.
Regards,
Subhabrata Banerjee.
More information about the Python-list
mailing list