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


Groups > comp.lang.python > #29962

Re: For Counter Variable

References (1 earlier) <a73d266f-fc5c-415f-8793-0078ab2436e7@googlegroups.com> <5060DA00.10801@stoneleaf.us> <CA+vVgJWskC=YOQOX4egcup_9ZvbadOW8BOTuqT7ZTYYW9ev-2Q@mail.gmail.com> <CAN1F8qV2WDCXsmOPvuHsv0Ox-Q8kBnWbcZ2bf4RxFPpMfK9fNg@mail.gmail.com> <CA+vVgJXScfD3BfphCufeLzVnW_yeoCZaZBDN1Q0RMVUmxTYOYQ@mail.gmail.com>
Date 2012-09-24 19:39 -0400
Subject Re: For Counter Variable
From Dwight Hutto <dwightdhutto@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1242.1348529944.27098.python-list@python.org> (permalink)

Show all headers | View raw


On Sep 25, 8:26 am, Dwight Hutto <dwightdhu...@gmail.com> wrote:
> It's a function usage. Not to be too serious, there are usually
> simpler solutions, and built in functions.

`enumerate` _is_ a built-in function. Please provide an example of a
"simpler solution".

It's not the simpler solution I'm referring to, it's the fact that if
you're learning, then you should be able to design the built-in, not
just use it.

You don't always know all the built-ins, so the builtin is simpler,
but knowing how to code it yourself is the priority of learning to
code in a higher level language, which should be simpler to the user
of python.

-- 
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com

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


Thread

For Counter Variable jimbo1qaz <jimmyli1528@gmail.com> - 2012-09-23 09:36 -0700
  Re: For Counter Variable Rodrick Brown <rodrick.brown@gmail.com> - 2012-09-23 12:45 -0400
  Re: For Counter Variable Chris Angelico <rosuav@gmail.com> - 2012-09-24 02:52 +1000
  Re: For Counter Variable jimbo1qaz <jimmyli1528@gmail.com> - 2012-09-23 10:45 -0700
    Re: For Counter Variable Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-23 22:54 +0000
      Re: For Counter Variable Tim Chase <python.list@tim.thechases.com> - 2012-09-23 18:29 -0500
      Re: For Counter Variable Tim Chase <python.list@tim.thechases.com> - 2012-09-23 19:05 -0500
      Re: For Counter Variable Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-24 02:03 +0100
      RE: For Counter Variable "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-09-27 17:34 +0000
    Re: For Counter Variable Ethan Furman <ethan@stoneleaf.us> - 2012-09-24 15:09 -0700
    Re: For Counter Variable Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 18:26 -0400
    Re: For Counter Variable Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 18:58 -0400
      Re: For Counter Variable alex23 <wuwei23@gmail.com> - 2012-09-24 16:33 -0700
        Re: For Counter Variable Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 19:49 -0400
          Re: For Counter Variable alex23 <wuwei23@gmail.com> - 2012-09-24 16:58 -0700
            Re: For Counter Variable Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 20:17 -0400
              Re: For Counter Variable alex23 <wuwei23@gmail.com> - 2012-09-24 17:19 -0700
                Re: For Counter Variable Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 20:25 -0400
                Re: For Counter Variable "Littlefield, Tyler" <tyler@tysdomain.com> - 2012-09-24 18:32 -0600
                Re: For Counter Variable Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 20:45 -0400
                Re: For Counter Variable Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 20:50 -0400
                Re: For Counter Variable Paul Rubin <no.email@nospam.invalid> - 2012-09-24 18:10 -0700
                Re: For Counter Variable Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 21:32 -0400
                Re: For Counter Variable Chris Angelico <rosuav@gmail.com> - 2012-09-25 17:55 +1000
                Re: For Counter Variable Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 21:13 -0400
              Re: For Counter Variable Ramchandra Apte <maniandram01@gmail.com> - 2012-09-29 06:41 -0700
              Re: For Counter Variable Ramchandra Apte <maniandram01@gmail.com> - 2012-09-29 06:41 -0700
        Re: For Counter Variable Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 19:50 -0400
    Re: For Counter Variable Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 19:39 -0400
      Re: For Counter Variable alex23 <wuwei23@gmail.com> - 2012-09-24 16:48 -0700
      Re: For Counter Variable Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-09-25 07:53 +0200
        Re: For Counter Variable Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-25 07:46 +0000
          Re: For Counter Variable Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-25 08:59 +0100
            Re: For Counter Variable wxjmfauth@gmail.com - 2012-09-25 02:32 -0700
              Re: For Counter Variable Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-25 10:46 +0100
              Re: For Counter Variable Chris Rebert <clp2@rebertia.com> - 2012-09-25 02:53 -0700
              Re: For Counter Variable Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-25 11:16 +0100
                Re: For Counter Variable Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-25 14:19 +0000
                Re: For Counter Variable Chris Angelico <rosuav@gmail.com> - 2012-09-26 00:38 +1000
              Re: For Counter Variable Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-25 11:54 -0400
            Re: For Counter Variable wxjmfauth@gmail.com - 2012-09-25 02:32 -0700
          (non sequitur) Re: For Counter Variable Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-25 11:51 -0400
        Re: For Counter Variable Tim Chase <python.list@tim.thechases.com> - 2012-09-25 05:57 -0500
        Re: For Counter Variable Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-25 12:20 +0100

csiph-web