[Tutor] First real script

Luke Paireepinart rabidpoobear at gmail.com
Tue Nov 7 00:08:48 CET 2006


Danny Yoo wrote:
>> Do you know a better way to do this?
>> [snip stuff]
>>     
>
> Hi Carlos,
>
> Here's one way to handle it.  If you're familiar with modulo "clock" 
> arithmetic, you might want to apply it above.
>   
Also, consider this example, Carlos:
 >>> aList = [1,2,3,4,5,6]
 >>> a,b,c = aList[1:4]
 >>> a
2
 >>> b
3
 >>> c
4

HTH,
-Luke


More information about the Tutor mailing list