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


Groups > comp.lang.python > #42515

Re: Help

Date 2013-04-01 18:28 -0400
From Dave Angel <davea@davea.name>
Subject Re: Help
References <d7343665-0b72-4424-89b0-89c5343acb82@googlegroups.com> <8fb27db9-e745-449e-b7f6-e30493f05b35@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.22.1364855320.17481.python-list@python.org> (permalink)

Show all headers | View raw


On 04/01/2013 05:42 PM, khaosyt@gmail.com wrote:
> Self-bump
>

Normally, bumping a message/thread means replying to it.  You're leaving 
a NEW message with no context, no reply, and a different uninformative 
subject line.  And you're leaving it from googlegroups, with two copies.

If you want to sum things through a loop, initialize a variable to zero 
before the loop, then add to it each time through the loop.

total=0
for  whatever in something:
     total += whatever_expression

print total


-- 
DaveA

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


Thread

Help khaosyt@gmail.com - 2013-04-01 14:02 -0700
  Re: Help khaosyt@gmail.com - 2013-04-01 14:42 -0700
    Re: Help Dave Angel <davea@davea.name> - 2013-04-01 18:28 -0400
  Re: Help khaosyt@gmail.com - 2013-04-01 14:42 -0700
    Re: Help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-04-01 23:09 +0100
      Re: Help khaosyt@gmail.com - 2013-04-01 15:12 -0700
        Re: Help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-04-01 23:29 +0100
      Re: Help khaosyt@gmail.com - 2013-04-01 15:12 -0700
        Re: Help Walter Hurry <walterhurry@lavabit.com> - 2013-04-01 23:56 +0000
          Re: Help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-04-02 02:02 +0100
            Re: Help Walter Hurry <walterhurry@lavabit.com> - 2013-04-02 23:41 +0000
      Re: Help Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-01 23:42 +0000
        Re: Help Roy Smith <roy@panix.com> - 2013-04-01 19:47 -0400
          Re: Help khaosyt@gmail.com - 2013-04-01 16:55 -0700

csiph-web