Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #92486
| X-Received | by 10.66.162.202 with SMTP id yc10mr11798149pab.47.1434037250778; Thu, 11 Jun 2015 08:40:50 -0700 (PDT) |
|---|---|
| X-Received | by 10.50.253.5 with SMTP id zw5mr294964igc.9.1434037250741; Thu, 11 Jun 2015 08:40:50 -0700 (PDT) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!h15no1649704igd.0!news-out.google.com!kd3ni3131igb.0!nntp.google.com!h15no1649682igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.python |
| Date | Thu, 11 Jun 2015 08:40:50 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=182.73.163.35; posting-account=pr4T-AoAAADQO9VNLYzE2Es10fZteroQ |
| NNTP-Posting-Host | 182.73.163.35 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <3bf5dd52-c698-4392-be2b-5c0aeefc3cd3@googlegroups.com> (permalink) |
| Subject | Error in or |
| From | subhabrata.banerji@gmail.com |
| Injection-Date | Thu, 11 Jun 2015 15:40:50 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.python:92486 |
Show key headers only | View raw
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.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Error in or subhabrata.banerji@gmail.com - 2015-06-11 08:40 -0700
Re: Error in or Ian Kelly <ian.g.kelly@gmail.com> - 2015-06-11 09:49 -0600
Re: Error in or subhabrata.banerji@gmail.com - 2015-06-11 09:39 -0700
Re: Error in or Ian Kelly <ian.g.kelly@gmail.com> - 2015-06-11 10:47 -0600
Re: Error in or subhabrata.banerji@gmail.com - 2015-06-11 10:21 -0700
Re: Error in or Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-06-11 18:54 +0100
Re: Error in or Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-06-12 09:41 +0000
Re: Error in or Marko Rauhamaa <marko@pacujo.net> - 2015-06-12 12:55 +0300
csiph-web