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. 
         
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to