Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78736

Re: Practice question

Newsgroups comp.lang.python
Date 2014-10-05 19:47 -0700
References <h2j33adothf9uctcdp5psqk2cclr01961r@4ax.com> <mailman.14620.1412552037.18130.python-list@python.org>
Message-ID <9e674b54-92e8-469b-ba68-da593fc8564a@googlegroups.com> (permalink)
Subject Re: Practice question
From Rustom Mody <rustompmody@gmail.com>

Show all headers | View raw


On Monday, October 6, 2014 5:04:11 AM UTC+5:30, Skip Montanaro wrote:
> On Oct 5, 2014 6:07 PM, Seymore4Head wrote:
> > For the record, I don't want a hint.  I want the answer.
> > I see a practice question is similar to this.
> > 15 <= x < 30  And it wants a similar expression that is equivalent.
> Maybe
>     30 > x >= 15
> ? Seems more "similar" to the original expression than the other possibilities.

> As to how to try it out, bring up the Python prompt, assign various
> values to x, and keep evaluating the possibilities. To simplify
> evaluation off a bunch of alternatives, consider defining a function
> which takes x add a parameter and print out the various expression
> values. I'd give a concrete example, but don't has a prompt
> available on my phone...


An interesting data-point.
We have a here a poster who's asked some 20 or so python questions
and still seems not to know how to use the interpreter interactively.

Sorry Seymore if this sounds condescending -- its not a complaint
against you but against those who treat the print statement/expression as
kosher for newbies. Imagine someone who has driven a car for a month but has
no clue about the basic rule of keep-left (or right).

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Practice question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-05 19:02 -0400
  Re: Practice question Roy Smith <roy@panix.com> - 2014-10-05 19:06 -0400
  Re: Practice question Ned Batchelder <ned@nedbatchelder.com> - 2014-10-05 19:14 -0400
    Re: Practice question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-05 20:07 -0400
      Re: Practice question Ned Batchelder <ned@nedbatchelder.com> - 2014-10-05 21:25 -0400
      Re: Practice question Steven D'Aprano <steve@pearwood.info> - 2014-10-07 08:41 +0000
  Re: Practice question Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-05 18:33 -0500
    Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-05 19:47 -0700
      Re: Practice question Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-06 08:04 -0500
        Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-06 09:23 -0700
          Re: Practice question Chris Angelico <rosuav@gmail.com> - 2014-10-07 03:52 +1100
            Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-06 10:05 -0700
              Re: Practice question Chris Angelico <rosuav@gmail.com> - 2014-10-07 04:13 +1100
              Re: Practice question Steven D'Aprano <steve@pearwood.info> - 2014-10-06 20:49 +0000
                Re: Practice question "Redge @ Versalytics.com" <versalytics@gmail.com> - 2014-10-06 20:54 -0400
                Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-08 09:14 -0700
                Re: Practice question Chris Angelico <rosuav@gmail.com> - 2014-10-09 03:23 +1100
                Re: Practice question Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-08 11:27 -0500
                Re: Practice question Rustom Mody <rustompmody@gmail.com> - 2014-10-08 09:41 -0700
  Re: Practice question Terry Reedy <tjreedy@udel.edu> - 2014-10-05 19:47 -0400
    Re: Practice question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-05 20:18 -0400
      Re: Practice question Steven D'Aprano <steve@pearwood.info> - 2014-10-07 08:48 +0000
        Re: Practice question C Smith <illusiontechniques@gmail.com> - 2014-10-07 05:43 -0700
  Re: Practice question C Smith <illusiontechniques@gmail.com> - 2014-10-05 16:24 -0700
  Re: Practice question Denis McMahon <denismfmcmahon@gmail.com> - 2014-10-07 01:46 +0000
    Re: Practice question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-06 22:06 -0400
      Re: Practice question alister <alister.nospam.ware@ntlworld.com> - 2014-10-09 15:28 +0000

csiph-web