How to do this?

Vincent Vande Vyvre vincent.vandevyvre at swing.be
Mon Apr 1 06:58:27 EDT 2013


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>



More information about the Python-list mailing list