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


Groups > comp.lang.python > #42452

Re: How to do this?

Date 2013-04-01 12:58 +0200
From Vincent Vande Vyvre <vincent.vandevyvre@swing.be>
Subject Re: How to do this?
References <83a54022-576d-465b-b6bd-7e21cde59d99@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.4051.1364813918.2939.python-list@python.org> (permalink)

Show all headers | View raw


Le 01/04/13 12:14, Ana Dionísio a écrit :
> for t in range(20):
>     if t == 4:
>         vt[t]=1
Sets only the needed values:

for t in range(4, 8):
    vt[t]=1



-- 
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>

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


Thread

How to do this? Ana Dionísio <anadionisio257@gmail.com> - 2013-04-01 03:14 -0700
  Re: How to do this? Vincent Vande Vyvre <vincent.vandevyvre@swing.be> - 2013-04-01 12:58 +0200
    Re: How to do this? Ana Dionísio <anadionisio257@gmail.com> - 2013-04-01 04:08 -0700
      Re: How to do this? Peter Otten <__peter__@web.de> - 2013-04-01 13:32 +0200
      Re: How to do this? Dave Angel <davea@davea.name> - 2013-04-01 07:53 -0400
    Re: How to do this? Ana Dionísio <anadionisio257@gmail.com> - 2013-04-01 04:08 -0700
  Re: How to do this? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-04-01 13:28 +0100

csiph-web